9#ifndef BOTAN_AEAD_GCM_H_
10#define BOTAN_AEAD_GCM_H_
12#include <botan/aead.h>
13#include <botan/block_cipher.h>
14#include <botan/sym_algo.h>
28 std::string
name()
const override final;
62 void start_msg(const uint8_t nonce[],
size_t nonce_len) override;
64 void key_schedule(std::span<const uint8_t> key) override;
86 size_t process_msg(uint8_t buf[],
size_t size)
override;
100 GCM_Mode(std::move(cipher), tag_size) {}
104 return input_length - tag_size();
110 size_t process_msg(uint8_t buf[],
size_t size)
override;
#define BOTAN_ARG_CHECK(expr, msg)
virtual void finish_msg(secure_vector< uint8_t > &final_block, size_t offset=0)=0
virtual size_t process_msg(uint8_t msg[], size_t msg_len)=0
size_t minimum_final_size() const override
size_t output_length(size_t input_length) const override
GCM_Decryption(std::unique_ptr< BlockCipher > cipher, size_t tag_size=16)
size_t output_length(size_t input_length) const override
GCM_Encryption(std::unique_ptr< BlockCipher > cipher, size_t tag_size=16)
size_t minimum_final_size() const override
static const size_t GCM_BS
std::unique_ptr< GHASH > m_ghash
size_t tag_size() const override final
std::string provider() const override final
size_t update_granularity() const override final
Key_Length_Specification key_spec() const override final
const std::string m_cipher_name
bool has_keying_material() const override final
void clear() override final
void reset() override final
size_t ideal_granularity() const override final
std::unique_ptr< StreamCipher > m_ctr
void set_associated_data_n(size_t idx, std::span< const uint8_t > ad) override final
std::string name() const override final
bool valid_nonce_length(size_t len) const override final
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector