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