8#ifndef BOTAN_CASCADE_H_
9#define BOTAN_CASCADE_H_
11#include <botan/block_cipher.h>
21 void encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
22 void decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
24 size_t block_size()
const override {
return m_block_size; }
29 m_cipher2->maximum_keylength());
32 void clear()
override;
33 std::string
name()
const override;
34 std::unique_ptr<BlockCipher>
new_object()
const override;
44 std::unique_ptr<BlockCipher> cipher2);
49 void key_schedule(
const uint8_t[],
size_t)
override;
51 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
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 *)