CHACHA_CTR_SIZE
CHACHA_CTR_SIZE, /* iv_len, 128-bit counter in the context */
unsigned char temp[CHACHA_CTR_SIZE] = { 0 };
if (actx->nonce_len <= CHACHA_CTR_SIZE)
memcpy(temp + CHACHA_CTR_SIZE - actx->nonce_len, iv,
unsigned int counter[CHACHA_CTR_SIZE / 4];
const unsigned char iv[CHACHA_CTR_SIZE], int enc)
for (i = 0; i < CHACHA_CTR_SIZE; i += 4) {
#define CHACHA20_IVLEN (CHACHA_CTR_SIZE)
unsigned int counter[CHACHA_CTR_SIZE / 4];
for (i = 0; i < CHACHA_CTR_SIZE; i += 4)
unsigned char tempiv[CHACHA_CTR_SIZE] = { 0 };
memcpy(tempiv + CHACHA_CTR_SIZE - noncelen, bctx->oiv,
unsigned int counter[CHACHA_CTR_SIZE / 4];
crypto_read_iv(crp, counter + (CHACHA_CTR_SIZE - csp->csp_ivlen) / 4);
unsigned int counter[CHACHA_CTR_SIZE / 4];
crypto_read_iv(crp, counter + (CHACHA_CTR_SIZE - csp->csp_ivlen) / 4);
.ivsize = CHACHA_CTR_SIZE,
unsigned int counter[CHACHA_CTR_SIZE / 4];