|
Botan 3.10.0
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 (Config config) |
| 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 () |
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 38 of file sponge.h.
|
inline |
|
inlineconstexpr |
Definition at line 52 of file sponge.h.
References Botan::Sponge< words, word >::bit_rate(), and Botan::Sponge< words, word >::state_bits().
|
inlineconstexpr |
Definition at line 48 of file sponge.h.
Referenced by Botan::Sponge< words, word >::bit_capacity().
|
inlineconstexpr |
Definition at line 54 of file sponge.h.
References Botan::Sponge< words, word >::byte_rate(), and Botan::Sponge< words, word >::state_bytes().
|
inlineconstexpr |
Definition at line 50 of file sponge.h.
Referenced by Botan::Ascon_XOF128::block_size(), Botan::cSHAKE_XOF::block_size(), Botan::SHAKE_XOF::block_size(), Botan::SHAKE_Cipher::buffer_size(), Botan::Sponge< words, word >::byte_capacity(), Botan::Keccak_1600::hash_block_size(), Botan::SHA_3::hash_block_size(), Botan::SHAKE_128::hash_block_size(), and Botan::SHAKE_256::hash_block_size().
|
inline |
|
inlineprotected |
|
inlineconstexpr |
Definition at line 56 of file sponge.h.
Referenced by Botan::Ascon_AEAD128_Mode::maybe_absorb_associated_data(), and Botan::Ascon_AEAD128_Mode::start_msg().
|
inlinestaticconstexpr |
Definition at line 46 of file sponge.h.
References Botan::Sponge< words, word >::state_bytes().
Referenced by Botan::Sponge< words, word >::bit_capacity().
|
inlinestaticconstexpr |
Definition at line 44 of file sponge.h.
Referenced by Botan::Sponge< words, word >::byte_capacity(), and Botan::Sponge< words, word >::state_bits().
|
staticconstexpr |
|
staticconstexpr |