Lines Matching defs:state
33 static inline void blake2s_increment_counter(struct blake2s_state *state,
36 state->t[0] += inc;
37 state->t[1] += (state->t[0] < inc);
40 void blake2s_compress(struct blake2s_state *state, const u8 *block,
44 void blake2s_compress_generic(struct blake2s_state *state, const u8 *block,
55 blake2s_increment_counter(state, inc);
58 memcpy(v, state->h, 32);
63 v[12] = BLAKE2S_IV4 ^ state->t[0];
64 v[13] = BLAKE2S_IV5 ^ state->t[1];
65 v[14] = BLAKE2S_IV6 ^ state->f[0];
66 v[15] = BLAKE2S_IV7 ^ state->f[1];
104 state->h[i] ^= v[i] ^ v[i + 8];