Botan
1.10.9
|
#include <def_powm.h>
Public Member Functions | |
Modular_Exponentiator * | copy () const |
BigInt | execute () const |
Montgomery_Exponentiator (const BigInt &, Power_Mod::Usage_Hints) | |
void | set_base (const BigInt &) |
void | set_exponent (const BigInt &) |
Montgomery Exponentiator
Definition at line 42 of file def_powm.h.
Botan::Montgomery_Exponentiator::Montgomery_Exponentiator | ( | const BigInt & | mod, |
Power_Mod::Usage_Hints | hints | ||
) |
Definition at line 127 of file powm_mnt.cpp.
References Botan::inverse_mod(), Botan::BigInt::is_even(), Botan::BigInt::is_positive(), mod, Botan::BigInt::Power2, r, and Botan::BigInt::sig_words().
Referenced by copy().
|
inlinevirtual |
Implements Botan::Modular_Exponentiator.
Definition at line 49 of file def_powm.h.
References Montgomery_Exponentiator().
|
virtual |
Implements Botan::Modular_Exponentiator.
Definition at line 77 of file powm_mnt.cpp.
References Botan::BigInt::assign(), Botan::bigint_monty_mul(), Botan::bigint_monty_redc(), Botan::bigint_monty_sqr(), Botan::BigInt::data(), Botan::BigInt::get_reg(), Botan::BigInt::get_substring(), Botan::MemoryRegion< T >::resize(), Botan::BigInt::sig_words(), Botan::MemoryRegion< T >::size(), Botan::BigInt::size(), and Botan::zeroise().
|
virtual |
Implements Botan::Modular_Exponentiator.
Definition at line 26 of file powm_mnt.cpp.
References base, Botan::bigint_monty_mul(), Botan::BigInt::bits(), Botan::BigInt::data(), Botan::BigInt::sig_words(), Botan::MemoryRegion< T >::size(), Botan::BigInt::size(), Botan::Power_Mod::window_bits(), and Botan::zeroise().
|
virtual |
Implements Botan::Modular_Exponentiator.
Definition at line 17 of file powm_mnt.cpp.
References Botan::BigInt::bits().