86 core.
encrypt(output, input, len);
size_t blockSize() const
Returns the input block size for the sponge function in bytes.
void reset()
Resets the Keccak sponge function ready for a new session.
void pad(uint8_t tag)
Pads the last block of input data to blockSize().
void update(const void *data, size_t size)
Updates the Keccak sponge function with more input data.
void extract(void *data, size_t size)
Extracts data from the Keccak sponge function.
void setCapacity(size_t capacity)
Sets the capacity of the Keccak sponge function in bits.
void encrypt(void *output, const void *input, size_t size)
Extracts data from the Keccak sponge function and uses it to encrypt a buffer.
void clear()
Clears all sensitive data from this object.
virtual ~SHAKE128()
Destroys this SHAKE128 object after clearing all sensitive information.
virtual ~SHAKE256()
Destroys this SHAKE256 object after clearing all sensitive information.
size_t blockSize() const
Size of the internal block used by the XOF algorithm, in bytes.
virtual ~SHAKE()
Destroys this SHAKE object after clearing all sensitive information.
void encrypt(uint8_t *output, const uint8_t *input, size_t len)
Encrypts an input buffer with extendable output from this XOF.
SHAKE(size_t capacity)
Constructs a SHAKE object.
void update(const void *data, size_t len)
Updates the XOF with more data.
void clear()
Clears the hash state, removing all sensitive data, and then resets the XOF ready for a new session.
void extend(uint8_t *data, size_t len)
Generates extendable output from this XOF.
void reset()
Resets the XOF ready for a new session.