This library implements some hash and cryptographic algorithms.

Dependents:   mBuinoBlinky PB_Emma_Ethernet SLOTrashHTTP Garagem ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers DES.h Source File

DES.h

00001 #ifndef DES_H
00002 #define DES_H
00003 
00004 #include "BlockCipher.h"
00005 
00006 class TDES;
00007 
00008 class DES : public BlockCipher
00009 {
00010     friend class TDES;
00011     
00012     public :
00013     
00014         DES(uint8_t* key);
00015         DES(uint8_t *key, uint8_t *iv);
00016                 
00017     private :
00018     
00019         virtual void encryptBlock(uint8_t *out, uint8_t *in);        
00020         virtual void decryptBlock(uint8_t *out, uint8_t *in);    
00021         void generateSubKeys(uint8_t *key);
00022     
00023         uint8_t subKeys[16][7];
00024 };
00025 
00026 #endif