9 #include <botan/numthry.h> 10 #include <botan/libstate.h> 11 #include <botan/internal/workfactor.h> 90 if(input <= 1 || input >= p - 1)
virtual void load_check(RandomNumberGenerator &rng) const
MemoryVector< byte > public_value() const
std::invalid_argument Invalid_Argument
SecureVector< byte > agree(const byte w[], size_t w_len)
BigInt unblind(const BigInt &x) const
DH_PrivateKey(const AlgorithmIdentifier &alg_id, const MemoryRegion< byte > &key_bits, RandomNumberGenerator &rng)
Library_State & global_state()
DH_KA_Operation(const DH_PrivateKey &key)
MemoryVector< byte > public_value() const
void load_check(RandomNumberGenerator &rng) const
BigInt blind(const BigInt &x) const
BigInt inverse_mod(const BigInt &n, const BigInt &mod)
const BigInt & group_p() const
BigInt power_mod(const BigInt &base, const BigInt &exp, const BigInt &mod)
static BigInt decode(const byte buf[], size_t length, Base base=Binary)
size_t dl_work_factor(size_t bits)
const BigInt & get_x() const
const BigInt & group_g() const
static SecureVector< byte > encode_1363(const BigInt &n, size_t bytes)