|
Botan 3.14.1
Crypto and TLS for C&
|
#include <hpke.h>
Public Member Functions | |
| std::span< const uint8_t > | identity () const |
| PSK (std::span< const uint8_t > psk, std::span< const uint8_t > psk_id) | |
| std::span< const uint8_t > | secret () const |
A pre-shared key plus identity, for the PSK and AuthPSK modes
RFC 9180 Section 5.1 requires both fields to be non-empty, and (following the recommendation of its Section 9.5) the PSK must be at least 32 bytes. Section 9.5 further recommends a PSK of at least Nh bytes, the output length of the suite's KDF; that is not enforced, as a PSK is not bound to a suite.
| Botan::HPKE::PSK::PSK | ( | std::span< const uint8_t > | psk, |
| std::span< const uint8_t > | psk_id ) |
Definition at line 333 of file hpke.cpp.
References BOTAN_ARG_CHECK.
|
inline |
|
inline |