11#include <botan/block_cipher.h>
20 void encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
21 void decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
23 void clear()
override;
25 std::string
provider()
const override;
27 std::string
name()
const override {
return "AES-128"; }
29 std::unique_ptr<BlockCipher>
new_object()
const override {
return std::make_unique<AES_128>(); }
36 void key_schedule(std::span<const uint8_t> key)
override;
38#if defined(BOTAN_HAS_AES_VPERM)
39 void vperm_encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
40 void vperm_decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
41 void vperm_key_schedule(
const uint8_t key[],
size_t length);
44#if defined(BOTAN_HAS_AES_NI)
45 void aesni_key_schedule(
const uint8_t key[],
size_t length);
48#if defined(BOTAN_HAS_AES_POWER8) || defined(BOTAN_HAS_AES_ARMV8) || defined(BOTAN_HAS_AES_NI)
49 void hw_aes_encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
50 void hw_aes_decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
61 void encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
62 void decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
64 void clear()
override;
66 std::string
provider()
const override;
68 std::string
name()
const override {
return "AES-192"; }
70 std::unique_ptr<BlockCipher>
new_object()
const override {
return std::make_unique<AES_192>(); }
76#if defined(BOTAN_HAS_AES_VPERM)
77 void vperm_encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
78 void vperm_decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
79 void vperm_key_schedule(
const uint8_t key[],
size_t length);
82#if defined(BOTAN_HAS_AES_NI)
83 void aesni_key_schedule(
const uint8_t key[],
size_t length);
86#if defined(BOTAN_HAS_AES_POWER8) || defined(BOTAN_HAS_AES_ARMV8) || defined(BOTAN_HAS_AES_NI)
87 void hw_aes_encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
88 void hw_aes_decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
91 void key_schedule(std::span<const uint8_t> key)
override;
101 void encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
102 void decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
104 void clear()
override;
106 std::string
provider()
const override;
108 std::string
name()
const override {
return "AES-256"; }
110 std::unique_ptr<BlockCipher>
new_object()
const override {
return std::make_unique<AES_256>(); }
116#if defined(BOTAN_HAS_AES_VPERM)
117 void vperm_encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
118 void vperm_decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
119 void vperm_key_schedule(
const uint8_t key[],
size_t length);
122#if defined(BOTAN_HAS_AES_NI)
123 void aesni_key_schedule(
const uint8_t key[],
size_t length);
126#if defined(BOTAN_HAS_AES_POWER8) || defined(BOTAN_HAS_AES_ARMV8) || defined(BOTAN_HAS_AES_NI)
127 void hw_aes_encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
128 void hw_aes_decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const;
131 void key_schedule(std::span<const uint8_t> key)
override;
void decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const override
std::string provider() const override
size_t parallelism() const override
bool has_keying_material() const override
std::unique_ptr< BlockCipher > new_object() const override
std::string name() const override
void encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const override
bool has_keying_material() const override
std::string name() const override
std::unique_ptr< BlockCipher > new_object() const override
void decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const override
std::string provider() const override
size_t parallelism() const override
void encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const override
bool has_keying_material() const override
void encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const override
void decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const override
std::string name() const override
std::string provider() const override
size_t parallelism() const override
std::unique_ptr< BlockCipher > new_object() const override
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector