Botan 3.8.1
Crypto and TLS for C&
|
#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 | multiply (const BigInt &x, const BigInt &y, const BigInt &z) const |
void | reduce (BigInt &out, const BigInt &x, secure_vector< word > &) const |
BigInt | reduce (const BigInt &x) const |
BigInt | square (const BigInt &x) const |
Static Public Member Functions | |
static Modular_Reducer | for_public_modulus (const BigInt &m) |
static Modular_Reducer | for_secret_modulus (const BigInt &m) |
Modular Reducer
This class is deprecated without replacement
|
inline |
Definition at line 69 of file reducer.h.
References Modular_Reducer().
Referenced by for_public_modulus(), for_secret_modulus(), and Modular_Reducer().
|
explicit |
Accepts m == 0 and leaves the Modular_Reducer in an uninitialized state
Definition at line 14 of file reducer.cpp.
Cube mod p
x | the value to cube |
Definition at line 54 of file reducer.h.
References multiply(), and square().
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Multiply mod p
Definition at line 40 of file reducer.h.
References multiply().
Referenced by multiply().
|
inline |
Low level reduction function. Mostly for internal use. Sometimes useful for performance by reducing temporaries Reduce x mod p and place the output in out.
ws is an (ignored) a temporary workspace.
Definition at line 65 of file reducer.h.
References reduce().
Referenced by reduce().
Definition at line 22 of file reducer.cpp.
References Botan::ct_modulo().
Referenced by multiply(), and square().