]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add translation for ECX group parameter
authorJuergen Christ <jchrist@linux.ibm.com>
Wed, 5 Oct 2022 11:57:21 +0000 (13:57 +0200)
committerHugo Landau <hlandau@openssl.org>
Thu, 13 Oct 2022 12:26:14 +0000 (13:26 +0100)
commitc048779520d47962316ddb436d08a050d5659666
treeae7922e80d05282ebb3202f7ca6cf37cdd597208
parent8511520842b744d1794ea794c032ce5f78cd874b
Add translation for ECX group parameter

Legacy EVP_PKEY_CTX objects did not support the "group" parameter for X25519
and X448.  The translation of this parameter resulted in an error.  This
caused errors for legacy keys and engines.

Fix this situation by adding a translation that simply checks that the correct
parameter is to be set, but does not actually set anything.  This is correct
since the group name is anyway optional for these two curves.

Fixes #19313

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19348)
crypto/evp/ctrl_params_translate.c