MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / blake2sp_init

Function blake2sp_init

Libraries/unrar/blake2sp.cpp:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#define PARALLELISM_DEGREE 8
15
16void blake2sp_init( blake2sp_state *S )
17{
18 memset( S->buf, 0, sizeof( S->buf ) );
19 S->buflen = 0;
20
21 blake2s_init_param( &S->R, 0, 1 ); // Init root.
22
23 for( uint i = 0; i < PARALLELISM_DEGREE; ++i )
24 blake2s_init_param( &S->S[i], i, 0 ); // Init leaf.
25
26 S->R.last_node = 1;
27 S->S[PARALLELISM_DEGREE - 1].last_node = 1;
28}
29
30
31struct Blake2ThreadData

Callers 1

InitMethod · 0.85

Calls 1

blake2s_init_paramFunction · 0.85

Tested by

no test coverage detected