Home
last modified time | relevance | path

Searched refs:CHACHA_CTR_SIZE (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/crypto/openssl/
H A Dossl_chacha20.c48 .ivsize = CHACHA_CTR_SIZE,
60 unsigned int counter[CHACHA_CTR_SIZE / 4]; in ossl_chacha20()
160 unsigned int counter[CHACHA_CTR_SIZE / 4]; in ossl_chacha20_poly1305_encrypt()
179 crypto_read_iv(crp, counter + (CHACHA_CTR_SIZE - csp->csp_ivlen) / 4); in ossl_chacha20_poly1305_encrypt()
306 unsigned int counter[CHACHA_CTR_SIZE / 4]; in ossl_chacha20_poly1305_decrypt()
326 crypto_read_iv(crp, counter + (CHACHA_CTR_SIZE - csp->csp_ivlen) / 4); in ossl_chacha20_poly1305_decrypt()
H A Dossl_chacha.h39 #define CHACHA_CTR_SIZE 16 macro
/freebsd/crypto/openssl/crypto/evp/
H A De_chacha20_poly1305.c27 unsigned int counter[CHACHA_CTR_SIZE / 4];
38 const unsigned char iv[CHACHA_CTR_SIZE], int enc) in chacha_init_key() argument
49 for (i = 0; i < CHACHA_CTR_SIZE; i+=4) { in chacha_init_key()
132 CHACHA_CTR_SIZE, /* iv_len, 128-bit counter in the context */
183 unsigned char temp[CHACHA_CTR_SIZE] = { 0 }; in chacha20_poly1305_init_key()
186 if (actx->nonce_len <= CHACHA_CTR_SIZE) in chacha20_poly1305_init_key()
187 memcpy(temp + CHACHA_CTR_SIZE - actx->nonce_len, iv, in chacha20_poly1305_init_key()
/freebsd/crypto/openssl/include/crypto/
H A Dchacha.h40 #define CHACHA_CTR_SIZE 16 macro
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_chacha20.h19 unsigned int counter[CHACHA_CTR_SIZE / 4];
H A Dcipher_chacha20_hw.c34 for (i = 0; i < CHACHA_CTR_SIZE; i += 4) in chacha20_initiv()
H A Dcipher_chacha20.c19 #define CHACHA20_IVLEN (CHACHA_CTR_SIZE)
H A Dcipher_chacha20_poly1305_hw.c78 unsigned char tempiv[CHACHA_CTR_SIZE] = { 0 }; in chacha20_poly1305_initiv()
89 memcpy(tempiv + CHACHA_CTR_SIZE - noncelen, bctx->oiv, in chacha20_poly1305_initiv()