9#ifndef BOTAN_AEAD_CCM_H_
10#define BOTAN_AEAD_CCM_H_
12#include <botan/aead.h>
13#include <botan/block_cipher.h>
52 size_t L()
const {
return m_L; }
68 void start_msg(
const uint8_t nonce[],
size_t nonce_len)
final;
69 size_t process_msg(uint8_t buf[],
size_t sz)
final;
71 void key_schedule(std::span<const uint8_t> key)
final;
73 const size_t m_tag_size;
76 std::unique_ptr<BlockCipher> m_cipher;
#define BOTAN_ARG_CHECK(expr, msg)
size_t output_length(size_t input_length) const override
CCM_Decryption(std::unique_ptr< BlockCipher > cipher, size_t tag_size=16, size_t L=3)
size_t minimum_final_size() const override
size_t minimum_final_size() const override
size_t output_length(size_t input_length) const override
CCM_Encryption(std::unique_ptr< BlockCipher > cipher, size_t tag_size=16, size_t L=3)
size_t ideal_granularity() const final
bool requires_entire_message() const final
bool associated_data_requires_key() const final
static void inc(secure_vector< uint8_t > &C)
size_t update_granularity() const final
secure_vector< uint8_t > & msg_buf()
const BlockCipher & cipher() const
void encode_length(uint64_t len, uint8_t out[])
size_t tag_size() const final
Key_Length_Specification key_spec() const final
bool valid_nonce_length(size_t) const final
void set_associated_data_n(size_t idx, std::span< const uint8_t > ad) final
secure_vector< uint8_t > format_c0()
bool has_keying_material() const final
std::string name() const final
const secure_vector< uint8_t > & ad_buf() const
secure_vector< uint8_t > format_b0(size_t msg_size)
size_t default_nonce_length() const final
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector