Add dupctx support to aead ciphers
authorNeil Horman <nhorman@openssl.org>
Fri, 1 Sep 2023 13:10:35 +0000 (09:10 -0400)
committerTomas Mraz <tomas@openssl.org>
Fri, 5 Jan 2024 16:15:40 +0000 (17:15 +0100)
commit766628d6af53b0519a54c922b32d4d79eb85ee2f
tree5410626cde05de7b0effe49925fcaaf2bfc51ed2
parentedb18a74047a068c3c92a1a1c43ee3c22b1f4efd
Add dupctx support to aead ciphers

Add dupctx method support to to ciphers implemented with IMPLEMENT_aead_cipher
This includes:
aes-<kbits>-gcm
aria-<kbits>-ccm
aria-<kbits>-gcm

Fixes #21887

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23102)

(cherry picked from commit 879a853a1dc968fb010e5bf17d2e8888acc70742)
providers/implementations/ciphers/cipher_aes_ccm.c
providers/implementations/ciphers/cipher_aes_gcm.c
providers/implementations/ciphers/cipher_aria_ccm.c
providers/implementations/ciphers/cipher_aria_gcm.c
providers/implementations/include/prov/ciphercommon_aead.h