a22bc99
From 189cfdbb9e30210ae58509bd73f7373f475ebaad Mon Sep 17 00:00:00 2001
5723328
From: Scott Talbert <swt@techie.net>
a22bc99
Date: Wed, 15 Nov 2017 19:37:52 -0500
a22bc99
Subject: [PATCH] Fix EVPTest by removing hard-coded EC curve name
5723328
5723328
---
5723328
 Crypto/testsuite/src/EVPTest.cpp | 6 +++---
5723328
 1 file changed, 3 insertions(+), 3 deletions(-)
5723328
5723328
diff --git a/Crypto/testsuite/src/EVPTest.cpp b/Crypto/testsuite/src/EVPTest.cpp
a22bc99
index 4a95fedd0..9ae91ab1a 100644
5723328
--- a/Crypto/testsuite/src/EVPTest.cpp
5723328
+++ b/Crypto/testsuite/src/EVPTest.cpp
5723328
@@ -336,7 +336,7 @@ void EVPTest::testECEVPSaveLoadStream()
5723328
 			assert (strPubE.str() == pubKey);
5723328
 			assert (key == key2);
5723328
 			assert (!(key != key2));
5723328
-			ECKey ecKeyNE("secp112r2");
a22bc99
+			ECKey ecKeyNE(curveName);
5723328
 			EVPPKey keyNE(&ecKeyNE);
5723328
 			assert (key != keyNE);
5723328
 			assert (!(key == keyNE));
5723328
@@ -391,7 +391,7 @@ void EVPTest::testECEVPSaveLoadStreamNoPass()
5723328
 			assert (strPubE.str() == pubKey);
5723328
 			assert (key == key2);
5723328
 			assert (!(key != key2));
5723328
-			ECKey ecKeyNE("secp112r2");
a22bc99
+			ECKey ecKeyNE(curveName);
5723328
 			EVPPKey keyNE(&ecKeyNE);
5723328
 			assert (key != keyNE);
5723328
 			assert (!(key == keyNE));
5723328
@@ -448,7 +448,7 @@ void EVPTest::testECEVPSaveLoadFile()
5723328
 			assert (strPubE.str() == pubKey);
5723328
 			assert (key == key2);
5723328
 			assert (!(key != key2));
5723328
-			ECKey ecKeyNE("secp112r2");
a22bc99
+			ECKey ecKeyNE(curveName);
5723328
 			EVPPKey keyNE(&ecKeyNE);
5723328
 			assert (key != keyNE);
5723328
 			assert (!(key == keyNE));
5723328
-- 
a22bc99
2.14.3
5723328