|
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 |
| Botan::Modular_Reducer::Modular_Reducer | ( | const BigInt & | mod | ) |
Definition at line 16 of file reducer.cpp.
Cube mod p
| x |
Definition at line 47 of file reducer.h.
References Botan::square().
|
inline |
Definition at line 21 of file reducer.h.
Referenced by Botan::ElGamal_Decryption_Operation::decrypt(), Botan::DSA_Verification_Operation::verify(), and Botan::NR_Verification_Operation::verify_mr().
|
inline |
Definition at line 50 of file reducer.h.
Referenced by Botan::Blinder::blind(), and Botan::Blinder::unblind().
Multiply mod p
| x | |
| y |
Definition at line 31 of file reducer.h.
Referenced by Botan::Blinder::blind(), Botan::Fixed_Window_Exponentiator::execute(), Botan::Blinder::unblind(), and Botan::NR_Verification_Operation::verify_mr().
Definition at line 32 of file reducer.cpp.
References Botan::BigInt::cmp(), 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 Botan::NR_Verification_Operation::verify_mr().
Square mod p
| x |
Definition at line 39 of file reducer.h.
References Botan::square().
Referenced by Botan::Blinder::blind(), and Botan::Fixed_Window_Exponentiator::execute().
1.8.14