Lines Matching refs:cv

65 static inline void compress_pre(uint32_t state[16], const uint32_t cv[8],  in compress_pre()
87 state[0] = cv[0]; in compress_pre()
88 state[1] = cv[1]; in compress_pre()
89 state[2] = cv[2]; in compress_pre()
90 state[3] = cv[3]; in compress_pre()
91 state[4] = cv[4]; in compress_pre()
92 state[5] = cv[5]; in compress_pre()
93 state[6] = cv[6]; in compress_pre()
94 state[7] = cv[7]; in compress_pre()
113 static inline void blake3_compress_in_place_generic(uint32_t cv[8], in blake3_compress_in_place_generic()
118 compress_pre(state, cv, block, block_len, counter, flags); in blake3_compress_in_place_generic()
119 cv[0] = state[0] ^ state[8]; in blake3_compress_in_place_generic()
120 cv[1] = state[1] ^ state[9]; in blake3_compress_in_place_generic()
121 cv[2] = state[2] ^ state[10]; in blake3_compress_in_place_generic()
122 cv[3] = state[3] ^ state[11]; in blake3_compress_in_place_generic()
123 cv[4] = state[4] ^ state[12]; in blake3_compress_in_place_generic()
124 cv[5] = state[5] ^ state[13]; in blake3_compress_in_place_generic()
125 cv[6] = state[6] ^ state[14]; in blake3_compress_in_place_generic()
126 cv[7] = state[7] ^ state[15]; in blake3_compress_in_place_generic()
133 uint32_t cv[8]; in hash_one_generic() local
134 memcpy(cv, key, BLAKE3_KEY_LEN); in hash_one_generic()
140 blake3_compress_in_place_generic(cv, input, BLAKE3_BLOCK_LEN, in hash_one_generic()
146 store_cv_words(out, cv); in hash_one_generic()
149 static inline void blake3_compress_xof_generic(const uint32_t cv[8], in blake3_compress_xof_generic()
154 compress_pre(state, cv, block, block_len, counter, flags); in blake3_compress_xof_generic()
164 store32(&out[8 * 4], state[8] ^ cv[0]); in blake3_compress_xof_generic()
165 store32(&out[9 * 4], state[9] ^ cv[1]); in blake3_compress_xof_generic()
166 store32(&out[10 * 4], state[10] ^ cv[2]); in blake3_compress_xof_generic()
167 store32(&out[11 * 4], state[11] ^ cv[3]); in blake3_compress_xof_generic()
168 store32(&out[12 * 4], state[12] ^ cv[4]); in blake3_compress_xof_generic()
169 store32(&out[13 * 4], state[13] ^ cv[5]); in blake3_compress_xof_generic()
170 store32(&out[14 * 4], state[14] ^ cv[6]); in blake3_compress_xof_generic()
171 store32(&out[15 * 4], state[15] ^ cv[7]); in blake3_compress_xof_generic()