Botan
2.1.0
Crypto and TLS for C++11
|
#include <def_powm.h>
Public Member Functions | |
Modular_Exponentiator * | copy () const override |
BigInt | execute () const override |
Montgomery_Exponentiator (const BigInt &, Power_Mod::Usage_Hints) | |
void | set_base (const BigInt &) override |
void | set_exponent (const BigInt &) override |
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 109 of file powm_mnt.cpp.
References Botan::BigInt::is_even(), Botan::BigInt::is_positive(), Botan::monty_inverse(), Botan::BigInt::power_of_2(), Botan::Modular_Reducer::reduce(), Botan::Modular_Reducer::square(), and Botan::BigInt::word_at().
Referenced by copy().
|
inlineoverridevirtual |
Implements Botan::Modular_Exponentiator.
Definition at line 49 of file def_powm.h.
References Montgomery_Exponentiator().
|
overridevirtual |
Implements Botan::Modular_Exponentiator.
Definition at line 67 of file powm_mnt.cpp.
References Botan::bigint_monty_mul(), Botan::bigint_monty_redc(), Botan::bigint_monty_sqr(), Botan::BigInt::data(), Botan::BigInt::get_substring(), Botan::BigInt::grow_to(), Botan::BigInt::mutable_data(), Botan::BigInt::Positive, and Botan::BigInt::size().
|
overridevirtual |
Implements Botan::Modular_Exponentiator.
Definition at line 27 of file powm_mnt.cpp.
References Botan::bigint_monty_mul(), Botan::BigInt::bits(), Botan::BigInt::data(), Botan::BigInt::Positive, Botan::Modular_Reducer::reduce(), Botan::BigInt::size(), and Botan::Power_Mod::window_bits().
|
overridevirtual |
Implements Botan::Modular_Exponentiator.
Definition at line 18 of file powm_mnt.cpp.
References Botan::BigInt::bits().