]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fixed chacha20 get updated IV
authorcjf7669 <cjf7669@rit.edu>
Thu, 3 Apr 2025 15:31:27 +0000 (11:31 -0400)
committerPauli <ppzgs1@gmail.com>
Wed, 7 May 2025 01:19:50 +0000 (11:19 +1000)
commit67ad6a089804c3e78a2d9cd7058c8f2ddd86347c
tree474d875a46b5e2a5898c8d3058b3ef9904f5bdf4
parentfda4777c140e47d7ae7115e5bcccb8f439e2ed41
Fixed chacha20 get updated IV

Fixes #26998

Addresses an issue where the EVP_CIPHER_CTX_get_updated_iv() function
does not properly return the updated IV for the ChaCha20 cipher.
chacha20_get_ctx_params was updated to be sensitive to the
OSSL_CIPHER_PARAM_UPDATED_IV parameter.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/27484)
providers/implementations/ciphers/cipher_chacha20.c
providers/implementations/ciphers/cipher_chacha20_hw.c
test/evp_test.c
test/recipes/30-test_evp_data/evpciph_chacha.txt