]> 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:15:47 +0000 (08:15 +1000)
commitd521ed9ea5632f00b01ac111864fedcbfd2fb7a6
treec04c63a69d46f00c9bc8bc164c1f7c78e4047c2a
parenta6d5af4fb52b09b8bf701b9b508e724557791a67
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