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

Function blake2b_init_param

freebsd/contrib/libb2/blake2b-ref.c:169–180  ·  view source on GitHub ↗

init xors IV with input parameter block */

Source from the content-addressed store, hash-verified

167
168/* init xors IV with input parameter block */
169int blake2b_init_param( blake2b_state *S, const blake2b_param *P )
170{
171 blake2b_init0( S );
172 uint8_t *p = ( uint8_t * )( P );
173
174 /* IV XOR ParamBlock */
175 for( size_t i = 0; i < 8; ++i )
176 S->h[i] ^= load64( p + sizeof( S->h[i] ) * i );
177
178 S->outlen = P->digest_length;
179 return 0;
180}
181
182
183

Callers 2

blake2b_initFunction · 0.70
blake2b_init_keyFunction · 0.70

Calls 2

load64Function · 0.85
blake2b_init0Function · 0.70

Tested by

no test coverage detected