Sha256: 640faa22dfdd8cac012dd2ea7e861a922f46be477b5e782881bec72943c5825d
Contents?: true
Size: 369 Bytes
Versions: 3
Compression:
Stored size: 369 Bytes
Contents
#include <string> using std::string; #include "crypto_auth.h" string crypto_auth(const string &m,const string &k) { if (k.size() != crypto_auth_KEYBYTES) throw "incorrect key length"; unsigned char a[crypto_auth_BYTES]; crypto_auth(a,(const unsigned char *) m.c_str(),m.size(),(const unsigned char *) k.c_str()); return string((char *) a,crypto_auth_BYTES); }
Version data entries
3 entries across 3 versions & 1 rubygems