|
Botan 1.10.17
|
#include <reducer.h>
Public Member Functions | |
| BigInt | cube (const BigInt &x) const |
| const BigInt & | get_modulus () const |
| bool | initialized () const |
| Modular_Reducer () | |
| Modular_Reducer (const BigInt &mod) | |
| BigInt | multiply (const BigInt &x, const BigInt &y) const |
| BigInt | reduce (const BigInt &x) const |
| BigInt | square (const BigInt &x) const |
|
inline |
Definition at line 52 of file reducer.h.
Referenced by Botan::Blinder::Blinder(), Botan::DSA_Verification_Operation::DSA_Verification_Operation(), Botan::ElGamal_Decryption_Operation::ElGamal_Decryption_Operation(), Botan::ElGamal_Encryption_Operation::ElGamal_Encryption_Operation(), Botan::Fixed_Window_Exponentiator::Fixed_Window_Exponentiator(), and Botan::NR_Verification_Operation::NR_Verification_Operation().
| Botan::Modular_Reducer::Modular_Reducer | ( | const BigInt & | mod | ) |
Definition at line 16 of file reducer.cpp.
References Botan::BigInt::BigInt(), Botan::MP_WORD_BITS, Botan::BigInt::Power2, Botan::BigInt::sig_words(), and Botan::square().
Cube mod p
| x |
Definition at line 47 of file reducer.h.
References multiply(), and square().
|
inline |
|
inline |
Multiply mod p
| x | |
| y |
Definition at line 31 of file reducer.h.
References reduce().
Referenced by cube(), and Botan::ressol().
Definition at line 32 of file reducer.cpp.
References Botan::BigInt::cmp(), Botan::Invalid_State::Invalid_State(), Botan::BigInt::is_negative(), Botan::BigInt::is_positive(), Botan::BigInt::mask_bits(), Botan::MP_WORD_BITS, Botan::BigInt::Positive, Botan::BigInt::Power2, and Botan::BigInt::set_sign().
Referenced by multiply(), and square().
Square mod p
| x |
Definition at line 39 of file reducer.h.
References reduce(), and Botan::square().
Referenced by cube(), and Botan::ressol().