Embedded systems coursework 2.
Fork of Crypto_light by
cipher/DES.h
- Committer:
- feb11
- Date:
- 2013-09-14
- Revision:
- 8:a090264e9b2d
- Parent:
- 7:2dbbdfb08123
File content as of revision 8:a090264e9b2d:
#ifndef DES_H #define DES_H #include "BlockCipher.h" class TDES; class DES : public BlockCipher { friend class TDES; public : DES(uint8_t* key); DES(uint8_t *key, uint8_t *iv); private : virtual void encryptBlock(uint8_t *out, uint8_t *in); virtual void decryptBlock(uint8_t *out, uint8_t *in); void generateSubKeys(uint8_t *key); uint8_t subKeys[16][7]; }; #endif