This library implements some hash and cryptographic algorithms.

Dependents:   ES_CW2_Starter_JIN EMBEDDED_CW2 EMBEDDED_CW2_Final Spinnybois ... more

Fork of Crypto by Francois Berder

Revision:
5:06cd9c8afa0b
diff -r 0da19393bd57 -r 06cd9c8afa0b DES.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DES.cpp	Thu Sep 12 15:08:51 2013 +0000
@@ -0,0 +1,28 @@
+#include "DES.h"
+
+
+DES::DES(uint8_t *key):
+Cipher()
+{
+//    loadKey(key);
+}
+
+void DES::encrypt(uint8_t *out, uint8_t *in, uint32_t length)
+{
+
+}
+     
+void DES::decrypt(uint8_t *out, uint8_t *in, uint32_t length)
+{
+
+}
+
+uint32_t DES::getBlockSize() const
+{
+    return 8;
+}
+
+CIPHER_TYPE DES::getType() const
+{
+    return STREAM_CIPHER;
+}