aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream/wid_wake/wid_wake.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream/wid_wake/wid_wake.h')
-rw-r--r--src/stream/wid_wake/wid_wake.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/stream/wid_wake/wid_wake.h b/src/stream/wid_wake/wid_wake.h
index 365a6d9ff..88f5690bf 100644
--- a/src/stream/wid_wake/wid_wake.h
+++ b/src/stream/wid_wake/wid_wake.h
@@ -30,16 +30,21 @@ class BOTAN_DLL WiderWake_41_BE : public StreamCipher
void clear();
std::string name() const { return "WiderWake4+1-BE"; }
StreamCipher* clone() const { return new WiderWake_41_BE; }
- WiderWake_41_BE() : StreamCipher(16, 16, 1) {}
+
+ WiderWake_41_BE() : StreamCipher(16, 16, 1),
+ T(256), state(5), t_key(4),
+ buffer(DEFAULT_BUFFERSIZE), position(0)
+ { }
+
private:
void key_schedule(const byte[], u32bit);
void generate(u32bit);
- SecureVector<byte, DEFAULT_BUFFERSIZE> buffer;
- SecureVector<u32bit, 256> T;
- SecureVector<u32bit, 5> state;
- SecureVector<u32bit, 4> t_key;
+ SecureVector<u32bit> T;
+ SecureVector<u32bit> state;
+ SecureVector<u32bit> t_key;
+ SecureVector<byte> buffer;
u32bit position;
};