|
Botan 3.10.0
Crypto and TLS for C&
|
#include <sponge_processing.h>
Public Member Functions | |
| word_t | masked_assignment (word_t state_word, word_t partial_input_word) const |
| word_t | read_from (BufferSlicer &slicer) const |
| void | write_into (BufferStuffer &stuffer, word_t partial_word) const |
Public Attributes | |
| size_t | length |
| size_t | offset |
Represents the bounds of partial byte-oriented data within a word of the sponge state. Downstream algorithms can use this to conveniently modify the passed in partial state word with data written or read from an input or output byte buffer.
Definition at line 43 of file sponge_processing.h.
|
inline |
Assigns the bits in 'partial_input_word' to their corresponding bits in 'state_word' at the specified '.offset' and '.length' while leaving all other bits in 'state_word' unchanged.
Definition at line 77 of file sponge_processing.h.
References BOTAN_DEBUG_ASSERT, length, and offset.
|
inline |
Reads '.length' bytes from the provided slicer and places them within a word at the specified '.offset' in little-endian order.
Definition at line 57 of file sponge_processing.h.
References Botan::BufferSlicer::copy_into(), length, Botan::load_le(), and offset.
|
inline |
Writes '.length' bytes from the provided word at the specified '.offset' into the provided stuffer in little-endian order.
Definition at line 67 of file sponge_processing.h.
References Botan::BufferStuffer::append(), length, offset, and Botan::store_le().
| size_t Botan::detail::PartialWordBounds< SpongeT >::length |
Definition at line 46 of file sponge_processing.h.
Referenced by masked_assignment(), read_from(), and write_into().
| size_t Botan::detail::PartialWordBounds< SpongeT >::offset |
Definition at line 45 of file sponge_processing.h.
Referenced by masked_assignment(), read_from(), and write_into().