Embedded systems coursework 2.

Fork of Crypto_light by Edward Stott

Revision:
5:06cd9c8afa0b
Parent:
1:14a7cea431aa
--- a/DES.h	Thu Sep 12 10:18:57 2013 +0000
+++ b/DES.h	Thu Sep 12 15:08:51 2013 +0000
@@ -0,0 +1,24 @@
+#ifndef DES_H
+#define DES_H
+
+#include "Cipher.h"
+
+
+class DES : public Cipher
+{
+    public :
+    
+        DES(uint8_t* key);
+        
+        virtual void encrypt(uint8_t *out, uint8_t *in, uint32_t length);        
+        virtual void decrypt(uint8_t *out, uint8_t *in, uint32_t length);        
+        virtual uint32_t getBlockSize() const;
+
+        CIPHER_TYPE getType() const;
+        
+    private :
+    
+        uint8_t keys[16][7];
+};
+
+#endif