diff options
author | lloyd <lloyd@randombit.net> | 2009-08-11 19:34:50 +0000 |
---|---|---|
committer | lloyd <lloyd@randombit.net> | 2009-08-11 19:34:50 +0000 |
commit | c8c3d7f6eecd753aa87a882b1458346682e606db (patch) | |
tree | cf902ddbe1b884fb1b7e91cd7cacf646fc5c66fc /src/block/rc2 | |
parent | 13d50de7b7675d798437c0d465acedd23e08b092 (diff) |
Make encrypt_n public for all BlockCipher implementations - unlike the
enc/dec functions it replaces, these are public interfaces.
Add the first bits of a SSE2 implementation of Serpent. Currently incomplete.
Diffstat (limited to 'src/block/rc2')
-rw-r--r-- | src/block/rc2/rc2.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/block/rc2/rc2.h b/src/block/rc2/rc2.h index 0d94d69a2..db623b385 100644 --- a/src/block/rc2/rc2.h +++ b/src/block/rc2/rc2.h @@ -18,15 +18,17 @@ namespace Botan { class BOTAN_DLL RC2 : public BlockCipher { public: + void encrypt_n(const byte in[], byte out[], u32bit blocks) const; + void decrypt_n(const byte in[], byte out[], u32bit blocks) const; + static byte EKB_code(u32bit); void clear() throw() { K.clear(); } std::string name() const { return "RC2"; } BlockCipher* clone() const { return new RC2; } + RC2() : BlockCipher(8, 1, 32) {} private: - void encrypt_n(const byte in[], byte out[], u32bit blocks) const; - void decrypt_n(const byte in[], byte out[], u32bit blocks) const; void key_schedule(const byte[], u32bit); SecureBuffer<u16bit, 64> K; |