diff options
author | Neil Horman <nhorman@openssl.org> | 2023-08-28 12:07:16 -0400 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-09-04 10:16:51 +1000 |
commit | 2fb934d9cfec4914a1549bc2b1c4e5658236ab29 (patch) | |
tree | 54eab4432581651c35ce8e820d94558da2280f11 /.github/workflows/run-checker-daily.yml | |
parent | 6754de4a121ec7f261b16723180df6592cbb4508 (diff) |
Implement dupctx for chacha20 cipher
Implement the dupctx method for the chacha20 cipher, so that
EVP_PKEY_CTX_copy works
Its pretty straightforward, its basically just a memdup. Checking the
pointers that might need fixing up:
in PROV_CHACHA20_CTX all members are statically declared, so memduping
should be fine
in PROV_CHACHA20_CTX->base (PROV_CIPHER_CTX):
Non statically declared members:
*tlsmac needs to get memduped to avoid double free
conditions, but only if base.alloced is set
*hw pointer is always assigned to the chacha20_hw global
variable, so can be left alone
*libctx can be left alone as provctx is always NULL in
chacha20_newctx
*ks appears unused by chacha20, so can be ignored
Fixes #20978
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21878)
(cherry picked from commit 61cfc22b60e33bc77b1e1944759af48c8e58f0d2)
Diffstat (limited to '.github/workflows/run-checker-daily.yml')
0 files changed, 0 insertions, 0 deletions