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:50 +0000 (13:26 +0100)
commite18186aa6ab11fd0d587163a7f9e2103e4df60ac
tree9a35aff4c2c6b9306b8909484213182e732cd817
parent667ece5ed08b0556e55bf8708a940ce962014100
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)

(cherry picked from commit c048779520d47962316ddb436d08a050d5659666)
crypto/evp/ctrl_params_translate.c