Lines Matching refs:input
65 static void chacha20_core(chacha_buf *output, const u32 input[16]) in chacha20_core()
71 memcpy(x, input, sizeof(x)); in chacha20_core()
86 output->u[i] = x[i] + input[i]; in chacha20_core()
89 U32TO8_LITTLE(output->c + 4 * i, (x[i] + input[i])); in chacha20_core()
101 u32 input[16]; in ChaCha20_ctr32_c() local
106 input[0] = ((u32)ossl_toascii('e')) | ((u32)ossl_toascii('x') << 8) in ChaCha20_ctr32_c()
109 input[1] = ((u32)ossl_toascii('n')) | ((u32)ossl_toascii('d') << 8) in ChaCha20_ctr32_c()
112 input[2] = ((u32)ossl_toascii('2')) | ((u32)ossl_toascii('-') << 8) in ChaCha20_ctr32_c()
115 input[3] = ((u32)ossl_toascii('t')) | ((u32)ossl_toascii('e') << 8) in ChaCha20_ctr32_c()
119 input[4] = key[0]; in ChaCha20_ctr32_c()
120 input[5] = key[1]; in ChaCha20_ctr32_c()
121 input[6] = key[2]; in ChaCha20_ctr32_c()
122 input[7] = key[3]; in ChaCha20_ctr32_c()
123 input[8] = key[4]; in ChaCha20_ctr32_c()
124 input[9] = key[5]; in ChaCha20_ctr32_c()
125 input[10] = key[6]; in ChaCha20_ctr32_c()
126 input[11] = key[7]; in ChaCha20_ctr32_c()
128 input[12] = counter[0]; in ChaCha20_ctr32_c()
129 input[13] = counter[1]; in ChaCha20_ctr32_c()
130 input[14] = counter[2]; in ChaCha20_ctr32_c()
131 input[15] = counter[3]; in ChaCha20_ctr32_c()
138 chacha20_core(&buf, input); in ChaCha20_ctr32_c()
152 input[12]++; in ChaCha20_ctr32_c()