Sha256: 0279ed40772be2c0f8c03e134026ccd8da2d1c3f756e9cab4d978d68dfaca283
Contents?: true
Size: 931 Bytes
Versions: 6
Compression:
Stored size: 931 Bytes
Contents
#include "crypto_kdf.h" #include "randombytes.h" const char * crypto_kdf_primitive(void) { return crypto_kdf_PRIMITIVE; } size_t crypto_kdf_bytes_min(void) { return crypto_kdf_BYTES_MIN; } size_t crypto_kdf_bytes_max(void) { return crypto_kdf_BYTES_MAX; } size_t crypto_kdf_contextbytes(void) { return crypto_kdf_CONTEXTBYTES; } size_t crypto_kdf_keybytes(void) { return crypto_kdf_KEYBYTES; } int crypto_kdf_derive_from_key(unsigned char *subkey, size_t subkey_len, uint64_t subkey_id, const char ctx[crypto_kdf_CONTEXTBYTES], const unsigned char key[crypto_kdf_KEYBYTES]) { return crypto_kdf_blake2b_derive_from_key(subkey, subkey_len, subkey_id, ctx, key); } void crypto_kdf_keygen(unsigned char k[crypto_kdf_KEYBYTES]) { randombytes_buf(k, crypto_kdf_KEYBYTES); }
Version data entries
6 entries across 6 versions & 2 rubygems