summaryrefslogtreecommitdiffstats
path: root/old/botan/build/botan/noekeon.h
diff options
context:
space:
mode:
Diffstat (limited to 'old/botan/build/botan/noekeon.h')
-rw-r--r--old/botan/build/botan/noekeon.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/old/botan/build/botan/noekeon.h b/old/botan/build/botan/noekeon.h
new file mode 100644
index 0000000..8938924
--- /dev/null
+++ b/old/botan/build/botan/noekeon.h
@@ -0,0 +1,37 @@
+/*
+* Noekeon
+* (C) 1999-2008 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#ifndef BOTAN_NOEKEON_H__
+#define BOTAN_NOEKEON_H__
+
+#include <botan/block_cipher.h>
+
+namespace Botan {
+
+/*
+* Noekeon
+*/
+class BOTAN_DLL Noekeon : public BlockCipher
+ {
+ public:
+ void clear() throw();
+ std::string name() const { return "Noekeon"; }
+ BlockCipher* clone() const { return new Noekeon; }
+ Noekeon() : BlockCipher(16, 16) {}
+ private:
+ void enc(const byte[], byte[]) const;
+ void dec(const byte[], byte[]) const;
+ void key_schedule(const byte[], u32bit);
+
+ static const byte RC[17];
+
+ SecureBuffer<u32bit, 4> EK, DK;
+ };
+
+}
+
+#endif