Fork of François Berder Crypto, fixed AES CBC and small rework
Dependents: AES_example shaun_larada Smartage
Fork of Crypto by
Diff: DES.h
- Revision:
- 5:06cd9c8afa0b
- Parent:
- 1:14a7cea431aa
diff -r 0da19393bd57 -r 06cd9c8afa0b DES.h --- 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