|
Botan
1.10.17
|
#include <pow_mod.h>
Public Types | |
| enum | Usage_Hints { NO_HINTS = 0x0000, BASE_IS_FIXED = 0x0001, BASE_IS_SMALL = 0x0002, BASE_IS_LARGE = 0x0004, BASE_IS_2 = 0x0008, EXP_IS_FIXED = 0x0100, EXP_IS_SMALL = 0x0200, EXP_IS_LARGE = 0x0400 } |
Public Member Functions | |
| BigInt | execute () const |
| Fixed_Base_Power_Mod () | |
| Fixed_Base_Power_Mod (const BigInt &, const BigInt &, Usage_Hints=NO_HINTS) | |
| BigInt | operator() (const BigInt &e) const |
| void | set_base (const BigInt &) const |
| void | set_exponent (const BigInt &) const |
| void | set_modulus (const BigInt &, Usage_Hints=NO_HINTS) const |
Static Public Member Functions | |
| static size_t | window_bits (size_t exp_bits, size_t base_bits, Power_Mod::Usage_Hints hints) |
|
inherited |
| Enumerator | |
|---|---|
| NO_HINTS | |
| BASE_IS_FIXED | |
| BASE_IS_SMALL | |
| BASE_IS_LARGE | |
| BASE_IS_2 | |
| EXP_IS_FIXED | |
| EXP_IS_SMALL | |
| EXP_IS_LARGE | |
Definition at line 35 of file pow_mod.h.
|
inline |
| Botan::Fixed_Base_Power_Mod::Fixed_Base_Power_Mod | ( | const BigInt & | b, |
| const BigInt & | n, | ||
| Usage_Hints | hints = NO_HINTS |
||
| ) |
Definition at line 206 of file pow_mod.cpp.
|
inherited |
Definition at line 109 of file pow_mod.cpp.
References Botan::Modular_Exponentiator::execute().
|
inherited |
Definition at line 83 of file pow_mod.cpp.
References Botan::BigInt::is_negative(), Botan::BigInt::is_zero(), and Botan::Modular_Exponentiator::set_base().
|
inherited |
Definition at line 96 of file pow_mod.cpp.
References Botan::BigInt::is_negative(), and Botan::Modular_Exponentiator::set_exponent().
|
inherited |
Definition at line 58 of file pow_mod.cpp.
|
staticinherited |
Definition at line 119 of file pow_mod.cpp.
References Botan::Power_Mod::BASE_IS_FIXED, and Botan::Power_Mod::EXP_IS_LARGE.
1.8.14