Searched refs:CHACHA_CTR_SIZE (Results 1 – 8 of 8) sorted by relevance
/freebsd/sys/crypto/openssl/ |
H A D | ossl_chacha20.c | 48 .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 D | ossl_chacha.h | 39 #define CHACHA_CTR_SIZE 16 macro
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_chacha20_poly1305.c | 27 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 D | chacha.h | 40 #define CHACHA_CTR_SIZE 16 macro
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_chacha20.h | 19 unsigned int counter[CHACHA_CTR_SIZE / 4];
|
H A D | cipher_chacha20_hw.c | 34 for (i = 0; i < CHACHA_CTR_SIZE; i += 4) in chacha20_initiv()
|
H A D | cipher_chacha20.c | 19 #define CHACHA20_IVLEN (CHACHA_CTR_SIZE)
|
H A D | cipher_chacha20_poly1305_hw.c | 78 unsigned char tempiv[CHACHA_CTR_SIZE] = { 0 }; in chacha20_poly1305_initiv() 89 memcpy(tempiv + CHACHA_CTR_SIZE - noncelen, bctx->oiv, in chacha20_poly1305_initiv()
|