implement dupctx for chacha20_poly1305
authorNeil Horman <nhorman@openssl.org>
Fri, 1 Sep 2023 17:22:03 +0000 (13:22 -0400)
committerTomas Mraz <tomas@openssl.org>
Fri, 5 Jan 2024 16:15:43 +0000 (17:15 +0100)
commit1aa0746d71468aaa0b999b3501bb0280a2f5d4f4
tree185bc7c28262bdf7594991905a84d8afb4546812
parent51036a43753f565443acdb81f2ed2857c029ee68
implement dupctx for chacha20_poly1305

Same as chacha20 in the last commit, just clone the ctx and its
underlying tlsmac array if its allocated

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 e7ef50c3e3b670a476aa0e864da5b5cc874b3528)
providers/implementations/ciphers/cipher_chacha20_poly1305.c