Botan 3.6.1
Crypto and TLS for C&
|
#include <pqcrystals_helpers.h>
Public Member Functions | |
Bounded_XOF () | |
Bounded_XOF (XofT xof) | |
template<size_t bytes, typename MapFnT = decltype(default_transformer<bytes>), typename PredicateFnT = decltype(default_predicate<bytes, MappedValueT<bytes, MapFnT>>)> requires std::invocable<MapFnT, std::array<uint8_t, bytes>> && std::invocable<PredicateFnT, MappedValueT<bytes, MapFnT>> | |
constexpr auto | next (MapFnT &&transformer=default_transformer< bytes >, PredicateFnT &&predicate=default_predicate< bytes, MappedValueT< bytes, MapFnT > >) |
template<typename PredicateFnT = decltype(default_predicate<1, uint8_t>)> requires std::invocable<PredicateFnT, uint8_t> | |
constexpr auto | next_byte (PredicateFnT &&predicate=default_predicate< 1, uint8_t >) |
Static Public Member Functions | |
template<size_t bytes, typename T > | |
static constexpr bool | default_predicate (T) |
template<size_t bytes> | |
static constexpr auto | default_transformer (std::array< uint8_t, bytes > x) |
Wraps any XOF to limit the number of bytes that can be produced to bound
. When the bound is reached, the XOF will throw an Internal_Error.
Definition at line 149 of file pqcrystals_helpers.h.
|
inline |
Definition at line 166 of file pqcrystals_helpers.h.
|
inlineexplicit |
Definition at line 170 of file pqcrystals_helpers.h.
|
inlinestaticconstexpr |
Definition at line 161 of file pqcrystals_helpers.h.
|
inlinestaticconstexpr |
Definition at line 156 of file pqcrystals_helpers.h.
|
inlineconstexpr |
Pulls the next bytes
from the XOF and applies transformer
to the output. The result is returned if predicate
is fulfilled.
predicate
. Definition at line 191 of file pqcrystals_helpers.h.
Referenced by Botan::detail::Bounded_XOF< XofT, bound >::next_byte().
|
inlineconstexpr |
predicate
. Definition at line 177 of file pqcrystals_helpers.h.
References Botan::detail::Bounded_XOF< XofT, bound >::next().