Botan
2.1.0
Crypto and TLS for C++11
|
#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 |
|
explicit |
Definition at line 16 of file reducer.cpp.
References Botan::MP_WORD_BITS, Botan::BigInt::power_of_2(), Botan::BigInt::sig_words(), and Botan::square().
Cube mod p
x |
Definition at line 47 of file reducer.h.
References Botan::square().
|
inline |
|
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_mp_mod_mul(), Botan::Fixed_Window_Exponentiator::execute(), Botan::ressol(), Botan::Fixed_Window_Exponentiator::set_base(), and Botan::Blinder::unblind().
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::power_of_2(), and Botan::BigInt::set_sign().
Referenced by Botan::Montgomery_Exponentiator::Montgomery_Exponentiator(), and Botan::Montgomery_Exponentiator::set_base().
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(), Botan::Montgomery_Exponentiator::Montgomery_Exponentiator(), and Botan::ressol().