Lines Matching refs:x
40 __le32 x; in get_unaligned_le32() local
42 memcpy(&x, p, sizeof(x)); in get_unaligned_le32()
43 return le32_to_cpu(x); in get_unaligned_le32()
47 __le32 x = cpu_to_le32(v); in put_unaligned_le32() local
49 memcpy(p, &x, sizeof(x)); in put_unaligned_le32()
53 __le64 x = cpu_to_le64(v); in put_unaligned_le64() local
55 memcpy(p, &x, sizeof(x)); in put_unaligned_le64()
116 static void ChaChaPermute(uint32_t x[16], int nrounds) { in ChaChaPermute()
119 CHACHA_QUARTERROUND(x[0], x[4], x[8], x[12]); in ChaChaPermute()
120 CHACHA_QUARTERROUND(x[1], x[5], x[9], x[13]); in ChaChaPermute()
121 CHACHA_QUARTERROUND(x[2], x[6], x[10], x[14]); in ChaChaPermute()
122 CHACHA_QUARTERROUND(x[3], x[7], x[11], x[15]); in ChaChaPermute()
125 CHACHA_QUARTERROUND(x[0], x[5], x[10], x[15]); in ChaChaPermute()
126 CHACHA_QUARTERROUND(x[1], x[6], x[11], x[12]); in ChaChaPermute()
127 CHACHA_QUARTERROUND(x[2], x[7], x[8], x[13]); in ChaChaPermute()
128 CHACHA_QUARTERROUND(x[3], x[4], x[9], x[14]); in ChaChaPermute()
151 uint32_t x[16]; in XChaCha() local
157 memcpy(x, state, 64); in XChaCha()
158 ChaChaPermute(x, nrounds); in XChaCha()
159 for (j = 0; j < 16; j++) keystream.words[j] = cpu_to_le32(x[j] + state[j]); in XChaCha()