8#ifndef BOTAN_CASCADE_H_
9#define BOTAN_CASCADE_H_
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 size_t block_size()
const override {
return m_block_size; }
29 void clear()
override;
30 std::string
name()
const override;
31 std::unique_ptr<BlockCipher>
new_object()
const override;
40 Cascade_Cipher(std::unique_ptr<BlockCipher> cipher1, std::unique_ptr<BlockCipher> cipher2);
46 void key_schedule(std::span<const uint8_t>)
override;
48 std::unique_ptr<BlockCipher> m_cipher1, m_cipher2;
bool has_keying_material() const override
Cascade_Cipher & operator=(const Cascade_Cipher &)=delete
std::string name() const override
Key_Length_Specification key_spec() const override
Cascade_Cipher(std::unique_ptr< BlockCipher > cipher1, std::unique_ptr< BlockCipher > cipher2)
std::unique_ptr< BlockCipher > new_object() const override
void encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const override
Cascade_Cipher(const Cascade_Cipher &)=delete
void decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const override
size_t block_size() const override
int(* final)(unsigned char *, CTX *)