Home
last modified time | relevance | path

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

/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];
/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()
225 ctr = buf + CHACHA_BLK_SIZE; in chacha20_poly1305_tls_cipher()
229 if (plen <= 3 * CHACHA_BLK_SIZE) { in chacha20_poly1305_tls_cipher()
231 buf_len = (plen + 2 * CHACHA_BLK_SIZE - 1) & (0 - CHACHA_BLK_SIZE); in chacha20_poly1305_tls_cipher()
[all …]
/openssl/include/crypto/
H A Dchacha.h47 #define CHACHA_BLK_SIZE 64 macro
/openssl/crypto/chacha/
H A Dchacha_riscv.c54 if (len > CHACHA_BLK_SIZE && RISCV_HAS_ZBB() && riscv_vlen() >= 128) { in ChaCha20_ctr32()

Completed in 18 milliseconds