8 #ifndef BOTAN_TURING_H__
9 #define BOTAN_TURING_H__
11 #include <botan/stream_cipher.h>
21 void cipher(
const byte in[],
byte out[],
size_t length);
22 void set_iv(
const byte iv[],
size_t iv_length);
25 {
return (iv_len % 4 == 0 && iv_len <= 16); }
33 std::string
name()
const {
return "Turing"; }
36 Turing() : S0(256), S1(256), S2(256), S3(256),
37 R(17), buffer(340), position(0) {}
40 void key_schedule(
const byte[],
size_t);
45 static const u32bit Q_BOX[256];
46 static const byte SBOX[256];
Key_Length_Specification key_spec() const
bool valid_iv_length(size_t iv_len) const
StreamCipher * clone() const