Lines Matching refs:working_state

143     uint32_t working_state[16];  in chacha20_block()  local
146 memcpy( working_state, in chacha20_block()
151 chacha20_inner_block( working_state ); in chacha20_block()
153 working_state[ 0] += initial_state[ 0]; in chacha20_block()
154 working_state[ 1] += initial_state[ 1]; in chacha20_block()
155 working_state[ 2] += initial_state[ 2]; in chacha20_block()
156 working_state[ 3] += initial_state[ 3]; in chacha20_block()
157 working_state[ 4] += initial_state[ 4]; in chacha20_block()
158 working_state[ 5] += initial_state[ 5]; in chacha20_block()
159 working_state[ 6] += initial_state[ 6]; in chacha20_block()
160 working_state[ 7] += initial_state[ 7]; in chacha20_block()
161 working_state[ 8] += initial_state[ 8]; in chacha20_block()
162 working_state[ 9] += initial_state[ 9]; in chacha20_block()
163 working_state[10] += initial_state[10]; in chacha20_block()
164 working_state[11] += initial_state[11]; in chacha20_block()
165 working_state[12] += initial_state[12]; in chacha20_block()
166 working_state[13] += initial_state[13]; in chacha20_block()
167 working_state[14] += initial_state[14]; in chacha20_block()
168 working_state[15] += initial_state[15]; in chacha20_block()
174 keystream[offset ] = (unsigned char)( working_state[i] ); in chacha20_block()
175 keystream[offset + 1U] = (unsigned char)( working_state[i] >> 8 ); in chacha20_block()
176 keystream[offset + 2U] = (unsigned char)( working_state[i] >> 16 ); in chacha20_block()
177 keystream[offset + 3U] = (unsigned char)( working_state[i] >> 24 ); in chacha20_block()
180 mbedtls_platform_zeroize( working_state, sizeof( working_state ) ); in chacha20_block()