Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: AES_example shaun_larada Smartage
Fork of Crypto by
Diff: cipher/TDES.h
- Revision:
- 8:a090264e9b2d
- Parent:
- 7:2dbbdfb08123
diff -r 2dbbdfb08123 -r a090264e9b2d cipher/TDES.h
--- a/cipher/TDES.h Sat Sep 14 18:21:32 2013 +0000
+++ b/cipher/TDES.h Sat Sep 14 20:54:59 2013 +0000
@@ -1,4 +1,22 @@
#ifndef TDES_H
#define TDES_H
+#include "DES.h"
+
+class TDES : public BlockCipher
+{
+ public :
+
+ TDES(uint8_t *key1, uint8_t *key2, uint8_t *key3);
+ TDES(uint8_t *key1, uint8_t *key2, uint8_t *key3, uint8_t *iv);
+
+ private :
+
+ virtual void encryptBlock(uint8_t *out, uint8_t *in);
+ virtual void decryptBlock(uint8_t *out, uint8_t *in);
+
+
+ DES a,b,c;
+};
+
#endif
\ No newline at end of file
