Fork of François Berder Crypto, fixed AES CBC and small rework

Dependents:   AES_example shaun_larada Smartage

Fork of Crypto by Francois Berder

cipher/DES.h

Committer:
Geremia
Date:
2015-01-28
Revision:
16:4399e2e6260b
Parent:
8:a090264e9b2d

File content as of revision 16:4399e2e6260b:

#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