This library implements some hash and cryptographic algorithms.
Dependents: ES_CW2_Starter_JIN EMBEDDED_CW2 EMBEDDED_CW2_Final Spinnybois ... more
Fork of Crypto by
cipher/RC4.h
- Committer:
- estott
- Date:
- 2018-03-09
- Revision:
- 15:634f9c4cbab1
- Parent:
- 8:a090264e9b2d
File content as of revision 15:634f9c4cbab1:
#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