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/TDES.h

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

File content as of revision 16:4399e2e6260b:

#ifndef TDES_H
#define TDES_H

#include "DES.h"

class TDES : public BlockCipher
{
    public :
    
        TDES(uint8_t *key1, uint8_t *key2, uint8_t *key3);
        TDES(uint8_t *key1, uint8_t *key2, uint8_t *key3, uint8_t *iv);
            
    private :
        
        virtual void encryptBlock(uint8_t *out, uint8_t *in);        
        virtual void decryptBlock(uint8_t *out, uint8_t *in);    
    
    
        DES a,b,c;
};

#endif