aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/cast/cast128.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/cast/cast128.h')
-rw-r--r--src/block/cast/cast128.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/block/cast/cast128.h b/src/block/cast/cast128.h
index 680481482..caffb97ea 100644
--- a/src/block/cast/cast128.h
+++ b/src/block/cast/cast128.h
@@ -18,13 +18,15 @@ namespace Botan {
class BOTAN_DLL CAST_128 : public BlockCipher
{
public:
- void clear() throw() { MK.clear(); RK.clear(); }
+ void encrypt_n(const byte in[], byte out[], u32bit blocks) const;
+ void decrypt_n(const byte in[], byte out[], u32bit blocks) const;
+
+ void clear() { MK.clear(); RK.clear(); }
std::string name() const { return "CAST-128"; }
BlockCipher* clone() const { return new CAST_128; }
+
CAST_128() : BlockCipher(8, 11, 16) {}
private:
- void enc(const byte[], byte[]) const;
- void dec(const byte[], byte[]) const;
void key_schedule(const byte[], u32bit);
static void key_schedule(u32bit[16], u32bit[4]);