Lines Matching full:12
22 WARN_ON_ONCE(nrounds != 20 && nrounds != 12); in chacha_permute()
25 x[0] += x[4]; x[12] = rol32(x[12] ^ x[0], 16); in chacha_permute()
30 x[8] += x[12]; x[4] = rol32(x[4] ^ x[8], 12); in chacha_permute()
31 x[9] += x[13]; x[5] = rol32(x[5] ^ x[9], 12); in chacha_permute()
32 x[10] += x[14]; x[6] = rol32(x[6] ^ x[10], 12); in chacha_permute()
33 x[11] += x[15]; x[7] = rol32(x[7] ^ x[11], 12); in chacha_permute()
35 x[0] += x[4]; x[12] = rol32(x[12] ^ x[0], 8); in chacha_permute()
40 x[8] += x[12]; x[4] = rol32(x[4] ^ x[8], 7); in chacha_permute()
46 x[1] += x[6]; x[12] = rol32(x[12] ^ x[1], 16); in chacha_permute()
50 x[10] += x[15]; x[5] = rol32(x[5] ^ x[10], 12); in chacha_permute()
51 x[11] += x[12]; x[6] = rol32(x[6] ^ x[11], 12); in chacha_permute()
52 x[8] += x[13]; x[7] = rol32(x[7] ^ x[8], 12); in chacha_permute()
53 x[9] += x[14]; x[4] = rol32(x[4] ^ x[9], 12); in chacha_permute()
56 x[1] += x[6]; x[12] = rol32(x[12] ^ x[1], 8); in chacha_permute()
61 x[11] += x[12]; x[6] = rol32(x[6] ^ x[11], 7); in chacha_permute()
71 * @nrounds: number of rounds (20 or 12; 20 is recommended)
89 state->x[12]++; in chacha_block_generic()
97 * @nrounds: number of rounds (20 or 12; 20 is recommended)
112 memcpy(&out[4], &permuted_state.x[12], 16); in hchacha_block_generic()