MCPcopy Create free account
hub / github.com/F-Stack/f-stack / blake2b_init

Function blake2b_init

freebsd/contrib/libb2/blake2b.c:232–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230/* Some sort of default parameter block initialization, for sequential blake2b */
231
232int blake2b_init( blake2b_state *S, size_t outlen )
233{
234 if ( ( !outlen ) || ( outlen > BLAKE2B_OUTBYTES ) ) return -1;
235
236 const blake2b_param P =
237 {
238 ( uint8_t ) outlen,
239 0,
240 1,
241 1,
242 0,
243 0,
244 0,
245 0,
246 {0},
247 {0},
248 {0}
249 };
250 return blake2b_init_param( S, &P );
251}
252
253int blake2b_init_key( blake2b_state *S, size_t outlen, const void *key, size_t keylen )
254{

Callers 2

blake2bFunction · 0.70
blake2_cipher_processFunction · 0.50

Calls 1

blake2b_init_paramFunction · 0.70

Tested by

no test coverage detected