9#ifndef BOTAN_AEAD_EAX_H_
10#define BOTAN_AEAD_EAX_H_
12#include <botan/aead.h>
13#include <botan/block_cipher.h>
15#include <botan/stream_cipher.h>
26 std::string
name()
const final;
57 std::unique_ptr<StreamCipher>
m_ctr;
58 std::unique_ptr<MessageAuthenticationCode>
m_cmac;
65 void start_msg(
const uint8_t nonce[],
size_t nonce_len)
final;
67 void key_schedule(std::span<const uint8_t> key)
final;
87 size_t process_msg(uint8_t buf[],
size_t size)
override;
111 size_t process_msg(uint8_t buf[],
size_t size)
override;
#define BOTAN_ARG_CHECK(expr, msg)
size_t output_length(size_t input_length) const override
size_t minimum_final_size() const override
EAX_Decryption(std::unique_ptr< BlockCipher > cipher, size_t tag_size=0)
EAX_Encryption(std::unique_ptr< BlockCipher > cipher, size_t tag_size=0)
size_t output_length(size_t input_length) const override
size_t minimum_final_size() const override
size_t tag_size() const final
size_t update_granularity() const final
void set_associated_data_n(size_t idx, std::span< const uint8_t > ad) final
size_t block_size() const
size_t ideal_granularity() const final
bool valid_nonce_length(size_t) const final
std::unique_ptr< BlockCipher > m_cipher
bool has_keying_material() const final
std::unique_ptr< StreamCipher > m_ctr
std::unique_ptr< MessageAuthenticationCode > m_cmac
Key_Length_Specification key_spec() const final
secure_vector< uint8_t > m_nonce_mac
std::string name() const final
secure_vector< uint8_t > m_ad_mac
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector