Botan  1.10.9
Namespaces | Functions
numthry.cpp File Reference
#include <botan/numthry.h>
#include <botan/reducer.h>
#include <botan/internal/bit_ops.h>
#include <algorithm>

Go to the source code of this file.

Namespaces

 Botan
 

Functions

BigInt Botan::gcd (const BigInt &a, const BigInt &b)
 
BigInt Botan::inverse_mod (const BigInt &n, const BigInt &mod)
 
BigInt Botan::lcm (const BigInt &a, const BigInt &b)
 
size_t Botan::low_zero_bits (const BigInt &n)
 
BigInt Botan::power_mod (const BigInt &base, const BigInt &exp, const BigInt &mod)
 
bool Botan::primality_test (const BigInt &n, RandomNumberGenerator &rng, size_t level)
 

Variable Documentation

BigInt n
BigInt n_minus_1

Definition at line 26 of file numthry.cpp.

Fixed_Exponent_Power_Mod pow_mod

Definition at line 28 of file numthry.cpp.

Referenced by Botan::power_mod().

BigInt r
Modular_Reducer reducer

Definition at line 29 of file numthry.cpp.

Referenced by Botan::Blinder::initialized().

size_t s