Lines Matching defs:chacha
31 #include <openssl/chacha.h>
374 ChaCha_ctx chacha;
458 ChaCha_set_key(&cpx->chacha, cpx->key, 8 * sizeof(cpx->key));
459 ChaCha_set_iv(&cpx->chacha, iv, NULL);
461 /* See chacha.c for details re handling of counter. */
462 cpx->chacha.input[12] = (uint32_t)ctr;
463 cpx->chacha.input[13] = (uint32_t)(ctr >> 32);
466 ChaCha(&cpx->chacha, poly1305_key, poly1305_key,
471 cpx->chacha.unused = 0;
502 ChaCha(&cpx->chacha, out, in, len);