]> git.ipfire.org Git - thirdparty/openssl.git/commit
chacha_poly: fix settable ctx param list
authorPauli <ppzgs1@gmail.com>
Wed, 30 Apr 2025 22:12:00 +0000 (08:12 +1000)
committerPauli <ppzgs1@gmail.com>
Thu, 8 May 2025 22:17:15 +0000 (08:17 +1000)
commit6145305767068cb50ef8b971730c89989a6040a7
tree1341c7f2b2d184f41ebd95075b3e7840b84e833a
parent5feea2be6141f0bb86644bb7ca29a94efa0eb99e
chacha_poly: fix settable ctx param list

The settable list used the generic AEAD cipher list which included
an extra parameter and omitted the IV length one.  The set ctx param call
was custom so the errant list didn't directly impact operation.

The comment about ignoring OSSL_CIPHER_PARAM_AEAD_MAC_KEY is completely bogus.
That parameter isn't accepted either here or by the shared AEAD cipher params.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/27534)

(cherry picked from commit 1c63382294750c9111e23931dcd5637d60d1b6c4)
providers/implementations/ciphers/cipher_chacha20_poly1305.c