Searched refs:tohash (Results 1 – 2 of 2) sorted by relevance
| /src/crypto/openssl/providers/implementations/ciphers/ |
| H A D | cipher_chacha20_poly1305_hw.c | 124 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; in chacha20_poly1305_tls_cipher() local 130 tohash = buf + CHACHA_BLK_SIZE - POLY1305_BLOCK_SIZE; in chacha20_poly1305_tls_cipher() 139 memcpy(tohash, ctx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher() 152 tohash_len = (size_t)(ctr - tohash); in chacha20_poly1305_tls_cipher() 164 memcpy(tohash, ctx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher() 198 tohash = ctr; in chacha20_poly1305_tls_cipher() 240 Poly1305_Update(poly, tohash, tohash_len); in chacha20_poly1305_tls_cipher() 242 Poly1305_Final(poly, bctx->enc ? ctx->tag : tohash); in chacha20_poly1305_tls_cipher() 249 if (CRYPTO_memcmp(tohash, in, POLY1305_BLOCK_SIZE)) { in chacha20_poly1305_tls_cipher()
|
| /src/crypto/openssl/crypto/evp/ |
| H A D | e_chacha20_poly1305.c | 221 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; in chacha20_poly1305_tls_cipher() local 228 tohash = buf + CHACHA_BLK_SIZE - POLY1305_BLOCK_SIZE; in chacha20_poly1305_tls_cipher() 238 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher() 251 tohash_len = (size_t)(ctr - tohash); in chacha20_poly1305_tls_cipher() 263 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher() 297 tohash = ctr; in chacha20_poly1305_tls_cipher() 343 Poly1305_Update(POLY1305_ctx(actx), tohash, tohash_len); in chacha20_poly1305_tls_cipher() 346 EVP_CIPHER_CTX_is_encrypting(ctx) ? actx->tag : tohash); in chacha20_poly1305_tls_cipher() 353 if (CRYPTO_memcmp(tohash, in, POLY1305_BLOCK_SIZE)) { in chacha20_poly1305_tls_cipher()
|