|
Botan 3.13.0
Crypto and TLS for C&
|
#include <spake2p.h>
Public Member Functions | |
| secure_vector< uint8_t > | serialize () const |
Static Public Member Functions | |
| static RegistrationRecord | deserialize (const SystemParameters ¶ms, std::span< const uint8_t > record) |
| static RegistrationRecord | from_password (const SystemParameters ¶ms, std::string_view password, std::span< const uint8_t > prover_id, std::span< const uint8_t > verifier_id, std::span< const uint8_t > salt, RandomNumberGenerator &rng) |
Friends | |
| class | ProverSecret |
| class | VerifierContext |
SPAKE2+ Registration Record
This is the information (w0 and L in RFC 9383) which the verifier stores in order to authenticate the prover.
|
static |
Deserialize a RegistrationRecord previously serialized by serialize
Definition at line 261 of file spake2p.cpp.
References Botan::EC_Scalar::deserialize(), Botan::EC_AffinePoint::deserialize_uncompressed(), Botan::EC_Group::get_order_bytes(), Botan::SPAKE2p::SystemParameters::group(), and Botan::SPAKE2p::SystemParameters::share_size().
Referenced by botan_spake2p_verifier_init().
|
static |
Perform password registration, returning the registration record
This derives the record from the password using Argon2id; see ProverSecret::from_password for the details. The same password, identities, and salt must later be used to create the prover's secret.
The identities and salt may be empty.
Definition at line 252 of file spake2p.cpp.
References Botan::SPAKE2p::ProverSecret::from_password(), and Botan::SPAKE2p::ProverSecret::registration_record().
| secure_vector< uint8_t > Botan::SPAKE2p::RegistrationRecord::serialize | ( | ) | const |
Serialize the registration record
Definition at line 279 of file spake2p.cpp.
References Botan::concat().
|
friend |
|
friend |
Definition at line 193 of file spake2p.h.
References VerifierContext.
Referenced by VerifierContext.