|
Botan 3.12.0
Crypto and TLS for C&
|
#include <sym_algo.h>
Public Member Functions | |
| Key_Length_Specification (size_t keylen) | |
| Key_Length_Specification (size_t min_k, size_t max_k, size_t k_mod=1) | |
| size_t | keylength_multiple () const |
| size_t | maximum_keylength () const |
| size_t | minimum_keylength () const |
| Key_Length_Specification | multiple (size_t n) const |
| bool | valid_keylength (size_t length) const |
Represents the length requirements on an algorithm key
Definition at line 22 of file sym_algo.h.
|
inlineexplicit |
Constructor for fixed length keys
| keylen | the supported key length |
Definition at line 28 of file sym_algo.h.
Referenced by Botan::commoncrypto_opts_from_algo_name(), Botan::ANSI_X919_MAC::key_spec(), Botan::Ascon_AEAD128_Mode::key_spec(), Botan::BLAKE2b::key_spec(), Botan::Block_Cipher_Fixed_Params< BS, KMIN, KMAX, KMOD, BaseClass >::key_spec(), Botan::Cascade_Cipher::key_spec(), Botan::ChaCha20Poly1305_Mode::key_spec(), Botan::ChaCha::key_spec(), Botan::GHASH::key_spec(), Botan::HMAC::key_spec(), Botan::KMAC::key_spec(), Botan::Lion::key_spec(), Botan::Poly1305::key_spec(), Botan::RC4::key_spec(), Botan::Salsa20::key_spec(), Botan::SHAKE_Cipher::key_spec(), Botan::SipHash::key_spec(), Botan::TLS::TLS_CBC_HMAC_AEAD_Mode::key_spec(), Botan::TLS::TLS_NULL_HMAC_AEAD_Mode::key_spec(), and multiple().
|
inline |
Constructor for variable length keys
| min_k | the smallest supported key length |
| max_k | the largest supported key length |
| k_mod | the number of bytes the key must be a multiple of |
Definition at line 36 of file sym_algo.h.
|
inline |
Definition at line 60 of file sym_algo.h.
|
inline |
Definition at line 55 of file sym_algo.h.
|
inline |
Definition at line 50 of file sym_algo.h.
|
inline |
Definition at line 67 of file sym_algo.h.
References Key_Length_Specification().
Referenced by Botan::SIV_Mode::key_spec(), and Botan::XTS_Mode::key_spec().
|
inline |
| length | is a key length in bytes |
Definition at line 43 of file sym_algo.h.