Home
last modified time | relevance | path

Searched refs:keylen (Results 1 – 2 of 2) sorted by relevance

/coreutils/src/blake2/
Dblake2.h148 int blake2s_init_key( blake2s_state *S, size_t outlen, const void *key, size_t keylen );
154 int blake2b_init_key( blake2b_state *S, size_t outlen, const void *key, size_t keylen );
161 int blake2sp_init_key( blake2sp_state *S, size_t outlen, const void *key, size_t keylen );
166 int blake2bp_init_key( blake2bp_state *S, size_t outlen, const void *key, size_t keylen );
172 int blake2xs_init_key( blake2xs_state *S, const size_t outlen, const void *key, size_t keylen );
177 int blake2xb_init_key( blake2xb_state *S, const size_t outlen, const void *key, size_t keylen );
182 … blake2s( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen );
183 … blake2b( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen );
185 …blake2sp( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen );
186 …blake2bp( void *out, size_t outlen, const void *in, size_t inlen, const void *key, size_t keylen );
[all …]
Dblake2b-ref.c124 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
[all …]