aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/rc2/rc2.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-09-15 12:39:44 +0000
committerlloyd <[email protected]>2009-09-15 12:39:44 +0000
commit467cfb8b8a31eecfaf63c30cfa13b69bef4cd566 (patch)
treeaa6314c8afa6d2c5e0759a57fc52c91a36f43af1 /src/block/rc2/rc2.h
parent63fb872cb36a44a852ec33133de7c242bd44427e (diff)
parent18d1a6d4d11d40afb2d5a9d96b0437933bcaa472 (diff)
propagate from branch 'net.randombit.botan.1_8' (head ef51dd2869ed38dae3aeb1c3b931ca9d595580e1)
to branch 'net.randombit.botan' (head fc1942640045423f411fd865cbd584090b28d7eb)
Diffstat (limited to 'src/block/rc2/rc2.h')
-rw-r--r--src/block/rc2/rc2.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/block/rc2/rc2.h b/src/block/rc2/rc2.h
index cb6f58f04..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 enc(const byte[], byte[]) const;
- void dec(const byte[], byte[]) const;
void key_schedule(const byte[], u32bit);
SecureBuffer<u16bit, 64> K;