Lines Matching refs:keylen
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()
133 P->key_length = (uint8_t)keylen; 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()
290 if( keylen > BLAKE2B_KEYBYTES ) return -1; in blake2b()
292 if( keylen > 0 ) 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()