TAY
Fork of Crypto_light by
cipher/DES.h
- Committer:
- feb11
- Date:
- 2013-09-14
- Revision:
- 7:2dbbdfb08123
- Parent:
- DES.h@ 5:06cd9c8afa0b
- Child:
- 8:a090264e9b2d
File content as of revision 7:2dbbdfb08123:
#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