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

Committer:
feb11
Date:
2013-09-14
Revision:
8:a090264e9b2d
Parent:
7:2dbbdfb08123

File content as of revision 8:a090264e9b2d:

#ifndef RC4_H
#define RC4_H

#include "StreamCipher.h"

class RC4 : public StreamCipher
{
    public :
    
        RC4(uint8_t *key, uint8_t keyLength);
        
    private :
    
        virtual uint8_t encryptByte(uint8_t in);
        virtual uint8_t decryptByte(uint8_t in);
                
        uint8_t s[256];
        uint8_t i,j;

};

#endif