Botan 3.6.1
Crypto and TLS for C&
|
#include <tls_external_psk.h>
Public Member Functions | |
ExternalPSK (const ExternalPSK &)=delete | |
ExternalPSK (ExternalPSK &&)=default | |
ExternalPSK (std::string_view identity, std::string_view prf_algo, secure_vector< uint8_t > psk) | |
secure_vector< uint8_t > | extract_master_secret () |
const std::string & | identity () const |
ExternalPSK & | operator= (const ExternalPSK &)=delete |
ExternalPSK & | operator= (ExternalPSK &&)=default |
const std::string & | prf_algo () const |
~ExternalPSK ()=default | |
This is an externally provided PreSharedKey along with its identity, master secret and (in case of TLS 1.3) a pre-provisioned Pseudo Random Function.
Definition at line 24 of file tls_external_psk.h.
|
delete |
|
default |
|
default |
|
inline |
Definition at line 32 of file tls_external_psk.h.
|
inline |
Returns the master secret by moving it out of this object. Do not call this method more than once.
Definition at line 46 of file tls_external_psk.h.
References BOTAN_STATE_CHECK.
|
inline |
Identity (e.g. username of the PSK owner) of the preshared key. Despite the std::string return type, this may or may not be a human-readable/printable string.
Definition at line 40 of file tls_external_psk.h.
|
delete |
|
default |
|
inline |
External preshared keys in TLS 1.3 must be provisioned with a pseudo-random function (typically SHA-256 or the like). This is needed to calculate/verify the PSK binder values in the client hello.
Definition at line 56 of file tls_external_psk.h.