Sha256: b4f5e2bd83496b9ef0c5334c104f9c6a4e2dc1b8f46dc12a5de01c3de3900fc0
Contents?: true
Size: 629 Bytes
Versions: 6
Compression:
Stored size: 629 Bytes
Contents
#include "crypto_shorthash.h" #include "randombytes.h" size_t crypto_shorthash_bytes(void) { return crypto_shorthash_BYTES; } size_t crypto_shorthash_keybytes(void) { return crypto_shorthash_KEYBYTES; } const char * crypto_shorthash_primitive(void) { return crypto_shorthash_PRIMITIVE; } int crypto_shorthash(unsigned char *out, const unsigned char *in, unsigned long long inlen, const unsigned char *k) { return crypto_shorthash_siphash24(out, in, inlen, k); } void crypto_shorthash_keygen(unsigned char k[crypto_shorthash_KEYBYTES]) { randombytes_buf(k, crypto_shorthash_KEYBYTES); }
Version data entries
6 entries across 6 versions & 2 rubygems