Lines Matching refs:key
124 int blake2b_init_key( blake2b_state *S, size_t outlen, const void *key, size_t keylen ) in blake2b_init_key() argument
130 if ( !key || !keylen || keylen > BLAKE2B_KEYBYTES ) return -1; in blake2b_init_key()
150 memcpy( block, key, keylen ); in blake2b_init_key()
277 int blake2b( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen… in blake2b() argument
286 if( NULL == key && keylen > 0 ) return -1; in blake2b()
294 if( blake2b_init_key( S, outlen, key, keylen ) < 0 ) return -1; in blake2b()
306 int blake2( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen … in blake2() argument
307 return blake2b(out, outlen, in, inlen, key, keylen); in blake2()
322 uint8_t key[BLAKE2B_KEYBYTES]; in main() local
327 key[i] = ( uint8_t )i; in main()
336 blake2b( hash, BLAKE2B_OUTBYTES, buf, i, key, BLAKE2B_KEYBYTES ); in main()
353 if( (err = blake2b_init_key(&S, BLAKE2B_OUTBYTES, key, BLAKE2B_KEYBYTES)) < 0 ) { in main()