Blame SOURCES/nettle-3.3-remove-ecc-testsuite.patch

3f3920
diff --git a/examples/ecc-benchmark.c b/examples/ecc-benchmark.c
3f3920
index 8e5e095..720d483 100644
3f3920
--- a/examples/ecc-benchmark.c
3f3920
+++ b/examples/ecc-benchmark.c
3f3920
@@ -330,8 +330,6 @@ bench_curve (const struct ecc_curve *ecc)
3f3920
 }
3f3920
 
3f3920
 const struct ecc_curve * const curves[] = {
3f3920
-  &nettle_secp_192r1,
3f3920
-  &nettle_secp_224r1,
3f3920
   &_nettle_curve25519,
3f3920
   &nettle_secp_256r1,
3f3920
   &nettle_secp_384r1,
3f3920
diff --git a/examples/hogweed-benchmark.c b/examples/hogweed-benchmark.c
3f3920
index 3fabe20..0223fe7 100644
3f3920
--- a/examples/hogweed-benchmark.c
3f3920
+++ b/examples/hogweed-benchmark.c
3f3920
@@ -393,24 +393,6 @@ bench_ecdsa_init (unsigned size)
3f3920
 
3f3920
   switch (size)
3f3920
     {
3f3920
-    case 192:
3f3920
-      ecc = &nettle_secp_192r1;
3f3920
-      xs = "8e8e07360350fb6b7ad8370cfd32fa8c6bba785e6e200599";
3f3920
-      ys = "7f82ddb58a43d59ff8dc66053002b918b99bd01bd68d6736";
3f3920
-      zs = "f2e620e086d658b4b507996988480917640e4dc107808bdd";
3f3920
-      ctx->digest = hash_string (&nettle_sha1, "abc");
3f3920
-      ctx->digest_size = 20;
3f3920
-      break;
3f3920
-    case 224:
3f3920
-      ecc = &nettle_secp_224r1;
3f3920
-      xs = "993bf363f4f2bc0f255f22563980449164e9c894d9efd088d7b77334";
3f3920
-      ys = "b75fff9849997d02d135140e4d0030944589586e22df1fc4b629082a";
3f3920
-      zs = "cdfd01838247f5de3cc70b688418046f10a2bfaca6de9ec836d48c27";
3f3920
-      ctx->digest = hash_string (&nettle_sha224, "abc");
3f3920
-      ctx->digest_size = 28;
3f3920
-      break;
3f3920
-
3f3920
-      /* From RFC 4754 */
3f3920
     case 256:
3f3920
       ecc = &nettle_secp_256r1;
3f3920
       xs = "2442A5CC 0ECD015F A3CA31DC 8E2BBC70 BF42D60C BCA20085 E0822CB0 4235E970";
3f3920
@@ -581,16 +563,6 @@ bench_openssl_ecdsa_init (unsigned size)
3f3920
 
3f3920
   switch (size)
3f3920
     {
3f3920
-    case 192:
3f3920
-      ctx->key = EC_KEY_new_by_curve_name (NID_X9_62_prime192v1);
3f3920
-      ctx->digest_length = 24; /* truncated */
3f3920
-      ctx->digest = hash_string (&nettle_sha224, "abc");
3f3920
-      break;
3f3920
-    case 224:
3f3920
-      ctx->key = EC_KEY_new_by_curve_name (NID_secp224r1);
3f3920
-      ctx->digest_length = SHA224_DIGEST_SIZE;
3f3920
-      ctx->digest = hash_string (&nettle_sha224, "abc");
3f3920
-      break;
3f3920
     case 256:
3f3920
       ctx->key = EC_KEY_new_by_curve_name (NID_X9_62_prime256v1);
3f3920
       ctx->digest_length = SHA256_DIGEST_SIZE;
3f3920
@@ -701,14 +673,10 @@ struct alg alg_list[] = {
3f3920
 #if 0
3f3920
   { "dsa",2048, bench_dsa_init, bench_dsa_sign,   bench_dsa_verify, bench_dsa_clear },
3f3920
 #endif
3f3920
-  { "ecdsa",  192, bench_ecdsa_init, bench_ecdsa_sign, bench_ecdsa_verify, bench_ecdsa_clear },
3f3920
-  { "ecdsa",  224, bench_ecdsa_init, bench_ecdsa_sign, bench_ecdsa_verify, bench_ecdsa_clear },
3f3920
   { "ecdsa",  256, bench_ecdsa_init, bench_ecdsa_sign, bench_ecdsa_verify, bench_ecdsa_clear },
3f3920
   { "ecdsa",  384, bench_ecdsa_init, bench_ecdsa_sign, bench_ecdsa_verify, bench_ecdsa_clear },
3f3920
   { "ecdsa",  521, bench_ecdsa_init, bench_ecdsa_sign, bench_ecdsa_verify, bench_ecdsa_clear },
3f3920
 #if WITH_OPENSSL
3f3920
-  { "ecdsa (openssl)",  192, bench_openssl_ecdsa_init, bench_openssl_ecdsa_sign, bench_openssl_ecdsa_verify, bench_openssl_ecdsa_clear },
3f3920
-  { "ecdsa (openssl)",  224, bench_openssl_ecdsa_init, bench_openssl_ecdsa_sign, bench_openssl_ecdsa_verify, bench_openssl_ecdsa_clear },
3f3920
   { "ecdsa (openssl)",  256, bench_openssl_ecdsa_init, bench_openssl_ecdsa_sign, bench_openssl_ecdsa_verify, bench_openssl_ecdsa_clear },
3f3920
   { "ecdsa (openssl)",  384, bench_openssl_ecdsa_init, bench_openssl_ecdsa_sign, bench_openssl_ecdsa_verify, bench_openssl_ecdsa_clear },
3f3920
   { "ecdsa (openssl)",  521, bench_openssl_ecdsa_init, bench_openssl_ecdsa_sign, bench_openssl_ecdsa_verify, bench_openssl_ecdsa_clear },
3f3920
diff --git a/testsuite/ecdh-test.c b/testsuite/ecdh-test.c
3f3920
index 5a2b39d..08870b1 100644
3f3920
--- a/testsuite/ecdh-test.c
3f3920
+++ b/testsuite/ecdh-test.c
3f3920
@@ -138,26 +138,6 @@ test_dh (const char *name, const struct ecc_curve *ecc,
3f3920
 void
3f3920
 test_main(void)
3f3920
 {
3f3920
-  test_dh ("secp-192r1", &nettle_secp_192r1,
3f3920
-	   "3406157206141798348095184987208239421004566462391397236532",
3f3920
-	   "1050363442265225480786760666329560655512990381040021438562",
3f3920
-	   "5298249600854377235107392014200406283816103564916230704184",
3f3920
-	   "738368960171459956677260317271477822683777845013274506165",
3f3920
-	   "2585840779771604687467445319428618542927556223024046979917",
3f3920
-	   "293088185788565313717816218507714888251468410990708684573",
3f3920
-	   "149293809021051532782730990145509724807636529827149481690",
3f3920
-	   "2891131861147398318714693938158856874319184314120776776192");
3f3920
-
3f3920
-  test_dh ("secp-224r1", &nettle_secp_224r1,
3f3920
-	   "1321072106881784386340709783538698930880431939595776773514895067682",
3f3920
-	   "6768311794185371282972144247871764855860666277647541840973645586477",
3f3920
-	   "2880077809069104378181313860274147139049600284805670362929579614547",
3f3920
-	   "13934723037778859565852601874354272638301919827851286722006496784914",
3f3920
-	   "373124771833407982305885866158843810218322878380632071540538232035",
3f3920
-	   "24223309755162432227459925493224336241652868856405241018762887667883",
3f3920
-	   "8330362698029245839097779050425944245826040430538860338085968752913",
3f3920
-	   "24167244512472228715617822000878192535267113543393576038737592837010");	   
3f3920
-
3f3920
   test_dh ("secp-256r1", &nettle_secp_256r1,
3f3920
 	   "94731533361265297353914491124013058635674217345912524033267198103710636378786",
3f3920
 	   "22441589863306126152768848344973918725077248391248404659242620344938484650846",
3f3920
diff --git a/testsuite/ecdsa-sign-test.c b/testsuite/ecdsa-sign-test.c
3f3920
index 559de8e..1ca36c2 100644
3f3920
--- a/testsuite/ecdsa-sign-test.c
3f3920
+++ b/testsuite/ecdsa-sign-test.c
3f3920
@@ -60,37 +60,6 @@ test_main (void)
3f3920
 {
3f3920
   /* Test cases for the smaller groups, verified with a
3f3920
      proof-of-concept implementation done for Yubico AB. */
3f3920
-  test_ecdsa (&nettle_secp_192r1,
3f3920
-	      "DC51D3866A15BACDE33D96F992FCA99D"
3f3920
-	      "A7E6EF0934E70975", /* z */
3f3920
-
3f3920
-	      "9E56F509196784D963D1C0A401510EE7"
3f3920
-	      "ADA3DCC5DEE04B15", /* k */
3f3920
-
3f3920
-	      SHEX("BA7816BF8F01CFEA414140DE5DAE2223"
3f3920
-		   "B00361A396177A9C"), /* h */
3f3920
-
3f3920
-	      "8c478db6a5c131540cebc739f9c0a9a8"
3f3920
-	      "c720c2abdd14a891", /* r */
3f3920
-
3f3920
-	      "a91fb738f9f175d72f9c98527e881c36"
3f3920
-	      "8de68cb55ffe589"); /* s */
3f3920
-
3f3920
-  test_ecdsa (&nettle_secp_224r1,
3f3920
-	      "446df0a771ed58403ca9cb316e617f6b"
3f3920
-	      "158420465d00a69601e22858",  /* z */
3f3920
-
3f3920
-	      "4c13f1905ad7eb201178bc08e0c9267b"
3f3920
-	      "4751c15d5e1831ca214c33f4",  /* z */
3f3920
-
3f3920
-	      SHEX("1b28a611fe62ab3649350525d06703ba"
3f3920
-		   "4b979a1e543566fd5caa85c6"),  /* h */
3f3920
-
3f3920
-	      "2cc280778f3d067df6d3adbe3a6aad63"
3f3920
-	      "bc75f08f5c5f915411902a99",  /* r */ 
3f3920
-
3f3920
-	      "d0f069fd0f108eb07b7bbc54c8d6c88d"
3f3920
-	      "f2715c38a95c31a2b486995f"); /* s */
3f3920
 
3f3920
   /* From RFC 4754 */
3f3920
   test_ecdsa (&nettle_secp_256r1,
3f3920
diff --git a/testsuite/testutils.c b/testsuite/testutils.c
3f3920
index 6f89761..901f62b 100644
3f3920
--- a/testsuite/testutils.c
3f3920
+++ b/testsuite/testutils.c
3f3920
@@ -1212,8 +1212,6 @@ test_dsa_key(const struct dsa_params *params,
3f3920
 }
3f3920
 
3f3920
 const struct ecc_curve * const ecc_curves[] = {
3f3920
-  &nettle_secp_192r1,
3f3920
-  &nettle_secp_224r1,
3f3920
   &nettle_secp_256r1,
3f3920
   &nettle_secp_384r1,
3f3920
   &nettle_secp_521r1,
3f3920
@@ -1270,20 +1268,6 @@ test_ecc_mul_a (unsigned curve, unsigned n, const mp_limb_t *p)
3f3920
 {
3f3920
   /* For each curve, the points 2 g, 3 g and 4 g */
3f3920
   static const struct ecc_ref_point ref[6][3] = {
3f3920
-    { { "dafebf5828783f2ad35534631588a3f629a70fb16982a888",
3f3920
-	"dd6bda0d993da0fa46b27bbc141b868f59331afa5c7e93ab" },
3f3920
-      { "76e32a2557599e6edcd283201fb2b9aadfd0d359cbb263da",
3f3920
-	"782c37e372ba4520aa62e0fed121d49ef3b543660cfd05fd" },
3f3920
-      { "35433907297cc378b0015703374729d7a4fe46647084e4ba",
3f3920
-	"a2649984f2135c301ea3acb0776cd4f125389b311db3be32" }
3f3920
-    },
3f3920
-    { { "706a46dc76dcb76798e60e6d89474788d16dc18032d268fd1a704fa6",
3f3920
-	"1c2b76a7bc25e7702a704fa986892849fca629487acf3709d2e4e8bb" },
3f3920
-      { "df1b1d66a551d0d31eff822558b9d2cc75c2180279fe0d08fd896d04",
3f3920
-	"a3f7f03cadd0be444c0aa56830130ddf77d317344e1af3591981a925" },
3f3920
-      { "ae99feebb5d26945b54892092a8aee02912930fa41cd114e40447301",
3f3920
-	"482580a0ec5bc47e88bc8c378632cd196cb3fa058a7114eb03054c9" },
3f3920
-    },
3f3920
     { { "7cf27b188d034f7e8a52380304b51ac3c08969e277f21b35a60b48fc47669978",
3f3920
 	"7775510db8ed040293d9ac69f7430dbba7dade63ce982299e04b79d227873d1" },
3f3920
       { "5ecbe4d1a6330a44c8f7ef951d4bf165e6c6b721efada985fb41661bc6e7fd6c",