Home
last modified time | relevance | path

Searched refs:CHACHA_BLK_SIZE (Results 1 – 7 of 7) sorted by relevance

/freebsd/sys/crypto/openssl/
H A Dossl_chacha20.c47 .blocksize = CHACHA_BLK_SIZE,
61 unsigned char block[CHACHA_BLK_SIZE]; in ossl_chacha20()
89 while (resid >= CHACHA_BLK_SIZE) { in ossl_chacha20()
90 if (inlen < CHACHA_BLK_SIZE) { in ossl_chacha20()
91 crypto_cursor_copydata(&cc_in, CHACHA_BLK_SIZE, block); in ossl_chacha20()
93 inlen = CHACHA_BLK_SIZE; in ossl_chacha20()
96 if (outlen < CHACHA_BLK_SIZE) { in ossl_chacha20()
98 outlen = CHACHA_BLK_SIZE; in ossl_chacha20()
104 CHACHA_BLK_SIZE); in ossl_chacha20()
112 next_counter = counter[0] + todo / CHACHA_BLK_SIZE; in ossl_chacha20()
[all …]
H A Dossl_chacha.h40 #define CHACHA_BLK_SIZE 64 macro
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_chacha20_hw.c49 while (inl > 0 && n < CHACHA_BLK_SIZE) { in chacha20_cipher()
58 if (n == CHACHA_BLK_SIZE) { in chacha20_cipher()
66 rem = (unsigned int)(inl % CHACHA_BLK_SIZE); in chacha20_cipher()
69 while (inl >= CHACHA_BLK_SIZE) { in chacha20_cipher()
70 size_t blocks = inl / CHACHA_BLK_SIZE; in chacha20_cipher()
91 blocks *= CHACHA_BLK_SIZE; in chacha20_cipher()
103 ChaCha20_ctr32(ctx->buf, ctx->buf, CHACHA_BLK_SIZE, in chacha20_cipher()
H A Dcipher_chacha20_poly1305_hw.c112 static const unsigned char zero[4 * CHACHA_BLK_SIZE] = { 0 };
114 static const unsigned char zero[2 * CHACHA_BLK_SIZE] = { 0 };
130 ctr = buf + CHACHA_BLK_SIZE; in chacha20_poly1305_tls_cipher()
131 tohash = buf + CHACHA_BLK_SIZE - POLY1305_BLOCK_SIZE; in chacha20_poly1305_tls_cipher()
134 if (plen <= 3 * CHACHA_BLK_SIZE) { in chacha20_poly1305_tls_cipher()
136 buf_len = (plen + 2 * CHACHA_BLK_SIZE - 1) & (0 - CHACHA_BLK_SIZE); in chacha20_poly1305_tls_cipher()
157 if (plen <= CHACHA_BLK_SIZE) { in chacha20_poly1305_tls_cipher()
161 ChaCha20_ctr32(buf, zero, (buf_len = 2 * CHACHA_BLK_SIZE), in chacha20_poly1305_tls_cipher()
193 ChaCha20_ctr32(buf, zero, (buf_len = CHACHA_BLK_SIZE), in chacha20_poly1305_tls_cipher()
264 static const unsigned char zero[CHACHA_BLK_SIZE] = { 0 };
[all …]
H A Dcipher_chacha20.h20 unsigned char buf[CHACHA_BLK_SIZE];
/freebsd/crypto/openssl/crypto/evp/
H A De_chacha20_poly1305.c28 unsigned char buf[CHACHA_BLK_SIZE];
65 while (len && n < CHACHA_BLK_SIZE) { in chacha_cipher()
74 if (n == CHACHA_BLK_SIZE) { in chacha_cipher()
82 rem = (unsigned int)(len % CHACHA_BLK_SIZE); in chacha_cipher()
85 while (len >= CHACHA_BLK_SIZE) { in chacha_cipher()
86 size_t blocks = len / CHACHA_BLK_SIZE; in chacha_cipher()
106 blocks *= CHACHA_BLK_SIZE; in chacha_cipher()
118 ChaCha20_ctr32(key->buf, key->buf, CHACHA_BLK_SIZE, in chacha_cipher()
209 static const unsigned char zero[4 * CHACHA_BLK_SIZE] = { 0 };
211 static const unsigned char zero[2 * CHACHA_BLK_SIZE] = { 0 };
[all …]
/freebsd/crypto/openssl/include/crypto/
H A Dchacha.h41 #define CHACHA_BLK_SIZE 64 macro