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

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

File content as of revision 16:4399e2e6260b:

#ifndef CIPHER_H
#define CIPHER_H

#include <stdint.h>

enum CIPHER_TYPE
{
    STREAM_CIPHER,
    BLOCK_CIPHER
};

class Cipher
{
    public :
    
        virtual ~Cipher();
        
        virtual void encrypt(uint8_t *out, uint8_t *in, uint32_t length) = 0;        
        virtual void decrypt(uint8_t *out, uint8_t *in, uint32_t length) = 0;        

        virtual CIPHER_TYPE getType() const = 0;

};


#endif