|
|
|
@ -306,25 +306,6 @@ diff -up openssl-3.0.0-alpha13/test/ssl-tests/20-cert-select.cnf.in.ec-curves op
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
diff -up openssl-3.0.0-alpha13/test/evp_extra_test.c.ec-curves openssl-3.0.0-alpha13/test/evp_extra_test.c
|
|
|
|
|
--- openssl-3.0.0-alpha13/test/evp_extra_test.c.ec-curves 2021-04-10 13:49:53.381742691 +0200
|
|
|
|
|
+++ openssl-3.0.0-alpha13/test/evp_extra_test.c 2021-04-10 13:56:11.742776705 +0200
|
|
|
|
|
@@ -2414,13 +2414,13 @@ err:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifndef OPENSSL_NO_EC
|
|
|
|
|
-static int ecpub_nids[] = { NID_brainpoolP256r1, NID_X9_62_prime256v1,
|
|
|
|
|
+static int ecpub_nids[] = {NID_X9_62_prime256v1,
|
|
|
|
|
NID_secp384r1, NID_secp521r1,
|
|
|
|
|
#ifndef OPENSSL_NO_EC2M
|
|
|
|
|
NID_sect233k1, NID_sect233r1, NID_sect283r1,
|
|
|
|
|
NID_sect409k1, NID_sect409r1, NID_sect571k1, NID_sect571r1,
|
|
|
|
|
#endif
|
|
|
|
|
- NID_brainpoolP384r1, NID_brainpoolP512r1};
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
|
|
static int test_ecpub(int idx)
|
|
|
|
|
{
|
|
|
|
|
diff -up openssl-3.0.0-alpha13/test/recipes/20-test_cli_fips.t.ec-curves openssl-3.0.0-alpha13/test/recipes/20-test_cli_fips.t
|
|
|
|
|
--- openssl-3.0.0-alpha13/test/recipes/20-test_cli_fips.t.ec-curves 2021-04-10 14:00:22.482782216 +0200
|
|
|
|
|
+++ openssl-3.0.0-alpha13/test/recipes/20-test_cli_fips.t 2021-04-10 14:08:50.769727651 +0200
|
|
|
|
@ -619,3 +600,47 @@ diff -up openssl-3.0.0-alpha13/test/recipes/65-test_cmp_vfy.t.ec-curves openssl-
|
|
|
|
|
|
|
|
|
|
my @basic_cmd = ("cmp_vfy_test",
|
|
|
|
|
data_file("server.crt"), data_file("client.crt"),
|
|
|
|
|
diff -up openssl-3.0.0-alpha15/crypto/evp/ec_support.c.ec-curves openssl-3.0.0-alpha15/crypto/evp/ec_support.c
|
|
|
|
|
--- openssl-3.0.0-alpha15/crypto/evp/ec_support.c.ec-curves 2021-04-23 18:15:12.571691284 +0200
|
|
|
|
|
+++ openssl-3.0.0-alpha15/crypto/evp/ec_support.c 2021-04-23 18:16:00.803087403 +0200
|
|
|
|
|
@@ -28,7 +28,6 @@ static const EC_NAME2NID curve_list[] =
|
|
|
|
|
static const EC_NAME2NID curve_list[] = {
|
|
|
|
|
/* prime field curves */
|
|
|
|
|
/* secg curves */
|
|
|
|
|
- {"secp224k1", NID_secp224k1 },
|
|
|
|
|
{"secp224r1", NID_secp224r1 },
|
|
|
|
|
{"secp256k1", NID_secp256k1 },
|
|
|
|
|
{"secp384r1", NID_secp384r1 },
|
|
|
|
|
diff -up openssl-3.0.0-alpha15/test/evp_extra_test.c.ec-curves openssl-3.0.0-alpha15/test/evp_extra_test.c
|
|
|
|
|
--- openssl-3.0.0-alpha15/test/evp_extra_test.c.ec-curves 2021-04-23 18:11:06.508670408 +0200
|
|
|
|
|
+++ openssl-3.0.0-alpha15/test/evp_extra_test.c 2021-04-23 18:12:44.833477933 +0200
|
|
|
|
|
@@ -2693,13 +2693,13 @@ err:
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef OPENSSL_NO_EC
|
|
|
|
|
-static int ecpub_nids[] = { NID_brainpoolP256r1, NID_X9_62_prime256v1,
|
|
|
|
|
+static int ecpub_nids[] = { NID_X9_62_prime256v1,
|
|
|
|
|
NID_secp384r1, NID_secp521r1,
|
|
|
|
|
#ifndef OPENSSL_NO_EC2M
|
|
|
|
|
NID_sect233k1, NID_sect233r1, NID_sect283r1,
|
|
|
|
|
NID_sect409k1, NID_sect409r1, NID_sect571k1, NID_sect571r1,
|
|
|
|
|
#endif
|
|
|
|
|
- NID_brainpoolP384r1, NID_brainpoolP512r1};
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
|
|
static int test_ecpub(int idx)
|
|
|
|
|
{
|
|
|
|
|
diff -up openssl-3.0.0-alpha15/apps/speed.c.ec-curves openssl-3.0.0-alpha15/apps/speed.c
|
|
|
|
|
--- openssl-3.0.0-alpha15/apps/speed.c.ec-curves 2021-04-26 14:25:44.049991942 +0200
|
|
|
|
|
+++ openssl-3.0.0-alpha15/apps/speed.c 2021-04-26 14:36:10.643570273 +0200
|
|
|
|
|
@@ -1439,8 +1439,8 @@ int speed_main(int argc, char **argv)
|
|
|
|
|
OPENSSL_assert(ec_curves[EC_NUM - 1].nid == NID_X448);
|
|
|
|
|
OPENSSL_assert(strcmp(ecdh_choices[EC_NUM - 1].name, "ecdhx448") == 0);
|
|
|
|
|
|
|
|
|
|
- OPENSSL_assert(ec_curves[ECDSA_NUM - 1].nid == NID_brainpoolP512t1);
|
|
|
|
|
- OPENSSL_assert(strcmp(ecdsa_choices[ECDSA_NUM - 1].name, "ecdsabrp512t1") == 0);
|
|
|
|
|
+ OPENSSL_assert(ec_curves[ECDSA_NUM - 1].nid == NID_secp521r1);
|
|
|
|
|
+ OPENSSL_assert(strcmp(ecdsa_choices[ECDSA_NUM - 1].name, "ecdsap521") == 0);
|
|
|
|
|
|
|
|
|
|
#ifndef OPENSSL_NO_SM2
|
|
|
|
|
OPENSSL_assert(sm2_curves[SM2_NUM - 1].nid == NID_sm2);
|
|
|
|
|