9#include <botan/internal/aes_crystals_xof.h>
11#include <botan/exceptn.h>
12#include <botan/stream_cipher.h>
13#include <botan/internal/fmt.h>
22 m_stream_cipher->clear();
25void AES_256_CTR_XOF::start_msg(std::span<const uint8_t> iv, std::span<const uint8_t> key) {
26 m_stream_cipher->set_key(key);
27 m_stream_cipher->set_iv(iv);
31 return m_stream_cipher->valid_iv_length(iv_length);
35 return m_stream_cipher->key_spec();
42void AES_256_CTR_XOF::add_data(std::span<const uint8_t> input) {
48void AES_256_CTR_XOF::generate_bytes(std::span<uint8_t> output) {
49 m_stream_cipher->write_keystream(
output);
std::unique_ptr< XOF > copy_state() const override
Key_Length_Specification key_spec() const override
~AES_256_CTR_XOF() override
std::string name() const override
bool valid_salt_length(size_t iv_length) const override
std::string fmt(std::string_view format, const T &... args)