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>
Tue, 12 Sep 2023 13:59:11 +0000 (15:59 +0200)
commit0239fb3db77e9de2031c5054854cba8e417c1b72
tree03a0149a7af969bfbd0646140564501236bb0d91
parent39d857bb610d25b3de4e414264246ec41753c446
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
sm4-<kibs>-gcm

Fixes #21887

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21933)
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/ciphers/cipher_sm4_ccm.c
providers/implementations/ciphers/cipher_sm4_gcm.c
providers/implementations/include/prov/ciphercommon_aead.h