Fork of François Berder Crypto, fixed AES CBC and small rework
Dependents: AES_example shaun_larada Smartage
Fork of Crypto by
Diff: cipher/DES.h
- Revision:
- 7:2dbbdfb08123
- Parent:
- 5:06cd9c8afa0b
- Child:
- 8:a090264e9b2d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cipher/DES.h Sat Sep 14 18:21:32 2013 +0000 @@ -0,0 +1,26 @@ +#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 : + + void generateSubKeys(uint8_t *key); + + uint8_t subKeys[16][7]; +}; + +#endif