https://github.com/CryptDB/cryptdb
Raw File
Tip revision: 7678bc98d3054f1418371779c6d1050cd1a88b2e authored by Raluca Ada Popa on 04 January 2014, 01:31:06 UTC
small changes to readme
Tip revision: 7678bc9
arc4.hh
#pragma once

#include <string>

class arc4 {
 public:
    arc4(const std::string &key);
    uint8_t getbyte();

 private:
    arc4(const arc4 &);

    void reset();
    void addkey(const uint8_t *key, size_t keylen);

    uint8_t i;
    uint8_t j;
    uint8_t s[256];
};
back to top