deps/unrar/blake2s.cpp
/* init2 xors IV with input parameter block */
init2 xors IV with input parameter block
init2 xors IV with input parameter block
void blake2s_init_param( blake2s_state *S, uint32 node_offset, uint32 node_depth)
{
#ifdef USE_SSE
  if (_SSE_Version>=SSE_SSE2)
    blake2s_init_sse();
#endif
  S->init(); 
  for( int i = 0; i < 8; ++i )
    S->h[i] = blake2s_IV[i];
  S->h[0] ^= 0x02080020; 
  S->h[2] ^= node_offset;
  S->h[3] ^= (node_depth<<16)|0x20000000;
}
void blake2s_init_param ( blake2s_state * S , uint32 node_offset , uint32 node_depth ) { #ifdef USE_SSE if ( _SSE_Version >= SSE_SSE2 ) blake2s_init_sse ( ) ; #endif S -> init ( ) ; for ( int i = 0 ; i < 8 ; ++ i ) S -> h [ i ] = blake2s_IV [ i ] ; S -> h [ 0 ] ^= 0x02080020 ; S -> h [ 2 ] ^= node_offset ; S -> h [ 3 ] ^= ( node_depth << 16 ) | 0x20000000 ; }
init2 xors IV with input parameter block
init2 xors IV with input parameter block
// Clean data. // We use BLAKE2sp parameters block.