Botan 3.4.0
Crypto and TLS for C&
|
Helper class to ease in-place marshalling of concatenated fixed-length values. More...
#include <stl_util.h>
Public Member Functions | |
constexpr void | append (std::span< const uint8_t > buffer) |
constexpr void | append (uint8_t b, size_t repeat=1) |
constexpr | BufferStuffer (std::span< uint8_t > buffer) |
constexpr bool | full () const |
template<size_t bytes> | |
constexpr std::span< uint8_t, bytes > | next () |
constexpr std::span< uint8_t > | next (size_t bytes) |
template<concepts::contiguous_strong_type StrongT> | |
StrongSpan< StrongT > | next (size_t bytes) |
constexpr uint8_t & | next_byte () |
constexpr size_t | remaining_capacity () const |
Helper class to ease in-place marshalling of concatenated fixed-length values.
The size of the final buffer must be known from the start, reallocations are not performed.
Definition at line 200 of file stl_util.h.
|
inlineconstexpr |
Definition at line 202 of file stl_util.h.
|
inlineconstexpr |
Definition at line 235 of file stl_util.h.
References next().
Referenced by Botan::EME_PKCS1v15::pad(), and Botan::sign_message().
|
inlineconstexpr |
Definition at line 240 of file stl_util.h.
References next().
|
inlineconstexpr |
Definition at line 245 of file stl_util.h.
Referenced by Botan::fors_public_key_from_signature(), Botan::fors_sign_and_pkgen(), Botan::ht_sign(), Botan::EME_PKCS1v15::pad(), Botan::sign_message(), and Botan::Keccak_Permutation::squeeze().
|
inlineconstexpr |
Definition at line 217 of file stl_util.h.
References BOTAN_STATE_CHECK.
Referenced by append(), append(), next(), and next_byte().
|
inlineconstexpr |
bytes
bytes in the concatenated buffer. Checks that the buffer is not exceded. Definition at line 208 of file stl_util.h.
References BOTAN_STATE_CHECK.
Referenced by Botan::create_aes_row_generator(), Botan::fors_public_key_from_signature(), Botan::fors_sign_and_pkgen(), Botan::ht_sign(), Botan::Keccak_Permutation::squeeze(), Botan::wots_public_key_from_signature(), Botan::wots_sign_and_pkgen(), and Botan::xmss_sign_and_pkgen().
|
inline |
Definition at line 226 of file stl_util.h.
References next().
|
inlineconstexpr |
Definition at line 233 of file stl_util.h.
References next().
Referenced by Botan::Keccak_Permutation::squeeze().
|
inlineconstexpr |
Definition at line 247 of file stl_util.h.
Referenced by Botan::Keccak_Permutation::squeeze(), and Botan::xmss_sign_and_pkgen().