|
Botan 3.14.1
Crypto and TLS for C&
|
#include <hpke.h>
Public Member Functions | |
| constexpr | AEAD_Id (AEAD_Code code) |
| constexpr | AEAD_Id (uint16_t code) |
| constexpr AEAD_Code | code () const |
| bool | is_available () const |
| constexpr bool | is_export_only () const |
| constexpr bool | is_known () const |
| size_t | key_length () const |
| Return the constant Nk from RFC 9180 Section 7.3, throws for invalid code points. | |
| size_t | nonce_length () const |
| Return the constant Nn from RFC 9180 Section 7.3, throws for invalid code points. | |
| constexpr bool | operator== (AEAD_Code code) const |
| constexpr bool | operator== (const AEAD_Id &other) const |
| size_t | tag_length () const |
| Return the constant Nt from RFC 9180 Section 7.3, throws for invalid code points. | |
| std::optional< std::string > | to_string () const |
| constexpr uint16_t | wire_code () const |
|
inlineconstexpr |
Definition at line 188 of file hpke.h.
References code().
Referenced by operator==().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 194 of file hpke.h.
Referenced by AEAD_Id(), AEAD_Id(), and operator==().
| bool Botan::HPKE::AEAD_Id::is_available | ( | ) | const |
Definition at line 172 of file hpke.cpp.
References Botan::AEAD_Mode::create(), Botan::Encryption, and is_export_only().
|
inlineconstexpr |
An export-only suite creates contexts usable only for export_secret See RFC 9180 Section 5.3
Definition at line 217 of file hpke.h.
References Botan::HPKE::ExportOnly.
Referenced by is_available(), and to_string().
|
inlineconstexpr |
Definition at line 202 of file hpke.h.
References Botan::HPKE::AES_128_GCM, Botan::HPKE::AES_256_GCM, Botan::HPKE::ChaCha20Poly1305, and Botan::HPKE::ExportOnly.
| size_t Botan::HPKE::AEAD_Id::key_length | ( | ) | const |
Return the constant Nk from RFC 9180 Section 7.3, throws for invalid code points.
Definition at line 182 of file hpke.cpp.
References Botan::fmt(), and wire_code().
| size_t Botan::HPKE::AEAD_Id::nonce_length | ( | ) | const |
Return the constant Nn from RFC 9180 Section 7.3, throws for invalid code points.
Definition at line 189 of file hpke.cpp.
References Botan::fmt(), and wire_code().
|
inlineconstexpr |
|
inlineconstexpr |
| size_t Botan::HPKE::AEAD_Id::tag_length | ( | ) | const |
Return the constant Nt from RFC 9180 Section 7.3, throws for invalid code points.
Definition at line 196 of file hpke.cpp.
References Botan::fmt(), and wire_code().
| std::optional< std::string > Botan::HPKE::AEAD_Id::to_string | ( | ) | const |
Definition at line 203 of file hpke.cpp.
References is_export_only().
|
inlineconstexpr |
Definition at line 196 of file hpke.h.
Referenced by key_length(), nonce_length(), and tag_length().