Lines Matching refs:i
78 size_t i; in blake2b_init0() local
81 for( i = 0; i < 8; ++i ) S->h[i] = blake2b_IV[i]; in blake2b_init0()
88 size_t i; in blake2b_init_param() local
93 for( i = 0; i < 8; ++i ) in blake2b_init_param()
94 S->h[i] ^= load64( p + sizeof( S->h[i] ) * i ); in blake2b_init_param()
157 #define G(r,i,a,b,c,d) \ argument
159 a = a + b + m[blake2b_sigma[r][2 * i + 0]]; \
163 a = a + b + m[blake2b_sigma[r][2 * i + 1]]; \
185 size_t i; in blake2b_compress() local
187 for( i = 0; i < 16; ++i ) { in blake2b_compress()
188 m[i] = load64( block + i * sizeof( m[i] ) ); in blake2b_compress()
191 for( i = 0; i < 8; ++i ) { in blake2b_compress()
192 v[i] = S->h[i]; in blake2b_compress()
217 for( i = 0; i < 8; ++i ) { in blake2b_compress()
218 S->h[i] = S->h[i] ^ v[i] ^ v[i + 8]; in blake2b_compress()
255 size_t i; in blake2b_final() local
268 for( i = 0; i < 8; ++i ) /* Output full hash to temp buffer */ in blake2b_final()
269 store64( buffer + sizeof( S->h[i] ) * i, S->h[i] ); in blake2b_final()
324 size_t i, step; in main() local
326 for( i = 0; i < BLAKE2B_KEYBYTES; ++i ) in main()
327 key[i] = ( uint8_t )i; in main()
329 for( i = 0; i < BLAKE2_KAT_LENGTH; ++i ) in main()
330 buf[i] = ( uint8_t )i; in main()
333 for( i = 0; i < BLAKE2_KAT_LENGTH; ++i ) in main()
336 blake2b( hash, BLAKE2B_OUTBYTES, buf, i, key, BLAKE2B_KEYBYTES ); in main()
338 if( 0 != memcmp( hash, blake2b_keyed_kat[i], BLAKE2B_OUTBYTES ) ) in main()
346 for (i = 0; i < BLAKE2_KAT_LENGTH; ++i) { in main()
350 size_t mlen = i; in main()
371 if (0 != memcmp(hash, blake2b_keyed_kat[i], BLAKE2B_OUTBYTES)) { in main()