Searched refs:tohash (Results 1 – 2 of 2) sorted by relevance
/openssl/providers/implementations/ciphers/ |
H A D | cipher_chacha20_poly1305_hw.c | 127 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; in chacha20_poly1305_tls_cipher() local 133 tohash = buf + CHACHA_BLK_SIZE - POLY1305_BLOCK_SIZE; in chacha20_poly1305_tls_cipher() 142 memcpy(tohash, ctx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher() 155 tohash_len = (size_t)(ctr - tohash); in chacha20_poly1305_tls_cipher() 167 memcpy(tohash, ctx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher() 201 tohash = ctr; in chacha20_poly1305_tls_cipher() 243 Poly1305_Update(poly, tohash, tohash_len); in chacha20_poly1305_tls_cipher() 245 Poly1305_Final(poly, bctx->enc ? ctx->tag : tohash); in chacha20_poly1305_tls_cipher() 252 if (CRYPTO_memcmp(tohash, in, POLY1305_BLOCK_SIZE)) { in chacha20_poly1305_tls_cipher()
|
/openssl/crypto/evp/ |
H A D | e_chacha20_poly1305.c | 219 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; in chacha20_poly1305_tls_cipher() local 226 tohash = buf + CHACHA_BLK_SIZE - POLY1305_BLOCK_SIZE; in chacha20_poly1305_tls_cipher() 236 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher() 249 tohash_len = (size_t)(ctr - tohash); in chacha20_poly1305_tls_cipher() 261 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher() 295 tohash = ctr; in chacha20_poly1305_tls_cipher() 341 Poly1305_Update(POLY1305_ctx(actx), tohash, tohash_len); in chacha20_poly1305_tls_cipher() 344 EVP_CIPHER_CTX_is_encrypting(ctx) ? actx->tag : tohash); in chacha20_poly1305_tls_cipher() 351 if (CRYPTO_memcmp(tohash, in, POLY1305_BLOCK_SIZE)) { in chacha20_poly1305_tls_cipher()
|
Completed in 10 milliseconds