Lines Matching refs:input
41 /* chacha_core performs 20 rounds of ChaCha on the input words in
42 * |input| and writes the 64 output bytes to |output|. */
43 static void chacha20_core(chacha_buf *output, const u32 input[16])
49 memcpy(x, input, sizeof(x));
64 output->u[i] = x[i] + input[i];
67 U32TO8_LITTLE(output->c + 4 * i, (x[i] + input[i]));
75 u32 input[16];
80 input[0] = ((u32)ossl_toascii('e')) | ((u32)ossl_toascii('x') << 8)
83 input[1] = ((u32)ossl_toascii('n')) | ((u32)ossl_toascii('d') << 8)
86 input[2] = ((u32)ossl_toascii('2')) | ((u32)ossl_toascii('-') << 8)
89 input[3] = ((u32)ossl_toascii('t')) | ((u32)ossl_toascii('e') << 8)
93 input[4] = key[0];
94 input[5] = key[1];
95 input[6] = key[2];
96 input[7] = key[3];
97 input[8] = key[4];
98 input[9] = key[5];
99 input[10] = key[6];
100 input[11] = key[7];
102 input[12] = counter[0];
103 input[13] = counter[1];
104 input[14] = counter[2];
105 input[15] = counter[3];
112 chacha20_core(&buf, input);
126 input[12]++;