Botan
1.10.9
|
#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.
References mod, 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 Botan::square().
|
inline |
Definition at line 21 of file reducer.h.
Referenced by Botan::ElGamal_Decryption_Operation::decrypt(), Botan::ElGamal_Encryption_Operation::encrypt(), 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::ElGamal_Decryption_Operation::decrypt(), Botan::ElGamal_Encryption_Operation::encrypt(), Botan::Fixed_Window_Exponentiator::execute(), Botan::ressol(), Botan::Fixed_Window_Exponentiator::set_base(), Botan::DSA_Signature_Operation::sign(), Botan::ECDSA_Signature_Operation::sign(), Botan::Blinder::unblind(), Botan::DSA_Verification_Operation::verify(), 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_Signature_Operation::sign(), Botan::DSA_Signature_Operation::sign(), Botan::RW_Signature_Operation::sign(), Botan::ECDSA_Signature_Operation::sign(), Botan::DSA_Verification_Operation::verify(), and 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(), Botan::Fixed_Window_Exponentiator::execute(), and Botan::ressol().