Botan 3.6.1
Crypto and TLS for C&
|
#include <srp6.h>
Public Member Functions | |
BigInt | step1 (const BigInt &v, const DL_Group &group, std::string_view hash_id, size_t b_bits, RandomNumberGenerator &rng) |
BigInt | step1 (const BigInt &v, std::string_view group_id, std::string_view hash_id, RandomNumberGenerator &rng) |
SymmetricKey | step2 (const BigInt &A) |
BigInt Botan::SRP6_Server_Session::step1 | ( | const BigInt & | v, |
const DL_Group & | group, | ||
std::string_view | hash_id, | ||
size_t | b_bits, | ||
RandomNumberGenerator & | rng ) |
Server side step 1 This version of step1 added in 2.11
v | the verification value saved from client registration |
group | the SRP group |
hash_id | the SRP hash in use |
rng | a random number generator |
b_bits | size of secret exponent in bits |
Definition at line 160 of file srp6.cpp.
References BOTAN_ARG_CHECK, Botan::HashFunction::create_or_throw(), Botan::fmt(), Botan::DL_Group::get_g(), Botan::DL_Group::get_p(), Botan::DL_Group::mod_p(), Botan::DL_Group::p_bits(), Botan::DL_Group::p_bytes(), and Botan::DL_Group::power_g_p().
BigInt Botan::SRP6_Server_Session::step1 | ( | const BigInt & | v, |
std::string_view | group_id, | ||
std::string_view | hash_id, | ||
RandomNumberGenerator & | rng ) |
Server side step 1
v | the verification value saved from client registration |
group_id | the SRP group id |
hash_id | the SRP hash in use |
rng | a random number generator |
Definition at line 151 of file srp6.cpp.
References Botan::DL_Group::exponent_bits(), and step1().
Referenced by step1().
SymmetricKey Botan::SRP6_Server_Session::step2 | ( | const BigInt & | A | ) |
Server side step 2
A | the client's value |
Definition at line 184 of file srp6.cpp.
References Botan::HashFunction::create_or_throw(), Botan::fmt(), Botan::DL_Group::get_p(), Botan::DL_Group::multiply_mod_p(), Botan::DL_Group::p_bits(), Botan::DL_Group::p_bytes(), Botan::DL_Group::power_b_p(), and Botan::BigInt::serialize().