8#ifndef BOTAN_TWOFISH_H_
9#define BOTAN_TWOFISH_H_
11#include <botan/block_cipher.h>
23 void encrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
24 void decrypt_n(
const uint8_t in[], uint8_t out[],
size_t blocks)
const override;
26 void clear()
override;
27 std::string
name()
const override {
return "Twofish"; }
30 void key_schedule(
const uint8_t[],
size_t)
override;
32 static const uint32_t MDS0[256];
33 static const uint32_t MDS1[256];
34 static const uint32_t MDS2[256];
35 static const uint32_t MDS3[256];
36 static const uint8_t Q0[256];
37 static const uint8_t Q1[256];
38 static const uint8_t RS[32];
39 static const uint8_t EXP_TO_POLY[255];
40 static const uint8_t POLY_TO_EXP[255];
virtual void decrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const =0
virtual void encrypt_n(const uint8_t in[], uint8_t out[], size_t blocks) const =0
BlockCipher * clone() const override
std::string name() const override
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
#define BOTAN_FUTURE_INTERNAL_HEADER(hdr)
std::vector< T, secure_allocator< T > > secure_vector