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
name()
const override {
return "DES"; }
27 std::unique_ptr<BlockCipher>
new_object()
const override {
return std::make_unique<DES>(); }
32 void key_schedule(std::span<const uint8_t>)
override;
42 void encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
43 void decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
45 void clear()
override;
47 std::string
name()
const override {
return "TripleDES"; }
49 std::unique_ptr<BlockCipher>
new_object()
const override {
return std::make_unique<TripleDES>(); }
54 void key_schedule(std::span<const uint8_t>)
override;
std::unique_ptr< BlockCipher > new_object() 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
bool has_keying_material() const override
void decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const override
std::unique_ptr< BlockCipher > new_object() const override
bool has_keying_material() const override
void encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const override
std::string name() const override
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector