Sha256: 69239616b7386fef29ca63ab85f4375b3d0deb67ae00bc5a8acdaa3ea7d6f292
Contents?: true
Size: 435 Bytes
Versions: 3
Compression:
Stored size: 435 Bytes
Contents
#include <string> using std::string; #include "crypto_stream.h" string crypto_stream(size_t clen,const string &n,const string &k) { if (n.size() != crypto_stream_NONCEBYTES) throw "incorrect nonce length"; if (k.size() != crypto_stream_KEYBYTES) throw "incorrect key length"; unsigned char c[clen]; crypto_stream(c,clen,(const unsigned char *) n.c_str(),(const unsigned char *) k.c_str()); return string((char *) c,clen); }
Version data entries
3 entries across 3 versions & 1 rubygems