|
Botan 3.14.1
Crypto and TLS for C&
|
#include <sponge.h>
Classes | |
| struct | Config |
Public Types | |
| using | state_t = std::array<word, words> |
| using | word_t = word |
Public Member Functions | |
| size_t & | _cursor () |
| constexpr size_t | bit_capacity () const |
| constexpr size_t | bit_rate () const |
| constexpr size_t | byte_capacity () const |
| constexpr size_t | byte_rate () const |
| size_t | cursor () const |
| constexpr Sponge & | operator= (const Sponge &)=default |
| constexpr Sponge & | operator= (Sponge &&)=default |
| constexpr | Sponge (Config config) |
| constexpr | Sponge (const Sponge &)=default |
| constexpr | Sponge (Sponge &&)=default |
| constexpr auto & | state () |
Static Public Member Functions | |
| static constexpr size_t | state_bits () |
| static constexpr size_t | state_bytes () |
Static Public Attributes | |
| static constexpr size_t | word_bits = word_bytes * 8 |
| static constexpr size_t | word_bytes = sizeof(word) |
Protected Member Functions | |
| void | reset_cursor () |
| constexpr | ~Sponge () |
A generic sponge construction with a fixed state size defined in terms of "words" of an unsigned integral type.
This is meant to be used as a base class for specific sponge constructions like Keccak or Ascon.
| using Botan::Sponge< words, word >::state_t = std::array<word, words> |
| using Botan::Sponge< words, word >::word_t = word |
|
inlineexplicitconstexpr |
Definition at line 41 of file sponge.h.
References bit_rate(), BOTAN_ARG_CHECK, and word_bits.
Referenced by operator=(), operator=(), Sponge(), and Sponge().
|
constexprdefault |
References Sponge().
|
constexprdefault |
References Sponge().
|
inlineconstexprprotected |
Definition at line 76 of file sponge.h.
References Botan::secure_scrub_memory().
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 55 of file sponge.h.
Referenced by bit_capacity(), and Sponge().
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
|
constexprdefault |
References Sponge().
|
constexprdefault |
References Sponge().
|
inlineprotected |
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
staticconstexpr |
|
staticconstexpr |