Fix OpenSSL 3.0 API EC curve names

The OpenSSL man page examples used the NIST curve names which
are supported. But when querying the name, the native OpenSSL
name is returned. Use these names to pass curve type checks for
engine/provider objects.
This commit is contained in:
Timo Teräs
2023-07-28 13:15:48 +03:00
parent 349fa71a0d
commit de45aab184

View File

@@ -125,9 +125,9 @@ static const char *
opensslecdsa_key_alg_to_group_name(unsigned int key_alg) {
switch (key_alg) {
case DST_ALG_ECDSA256:
return ("P-256");
return ("prime256v1");
case DST_ALG_ECDSA384:
return ("P-384");
return ("secp384r1");
default:
UNREACHABLE();
}