]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Randomize more tests
authorNiels Möller <nisse@lysator.liu.se>
Mon, 15 Nov 2021 18:48:26 +0000 (19:48 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 15 Nov 2021 18:48:26 +0000 (19:48 +0100)
ChangeLog
testsuite/ecc-modinv-test.c
testsuite/ecc-mul-a-test.c
testsuite/ecc-mul-g-test.c
testsuite/ecc-redc-test.c
testsuite/ecc-sqrt-test.c
testsuite/eddsa-compress-test.c

index cbfb5fc2b315f73dd7b140b2bc02b135197ae404..1d00edf1cb51dd1ff7569d0f436cef5550ceef50 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,11 +1,17 @@
 2021-11-15  Niels Möller  <nisse@lysator.liu.se>
 
+       * testsuite/eddsa-compress-test.c (test_main): Use test_randomize.
+       * testsuite/ecc-redc-test.c (test_main): Likewise.
+       * testsuite/ecc-mul-g-test.c (test_main): Likewise.
+       * testsuite/ecc-mul-a-test.c (test_main): Likewise.
+
        * testsuite/ecc-modinv-test.c (test_modulo): Trim allocation for
        result area.
-       * testsuite/ecc-sqrt-test.c (test_sqrt, test_sqrt_ratio): Likewise.
-
-       * testsuite/ecc-sqrt-test.c (test_sqrt_ratio): Fix sqrt_ratio test
-       for v = 0, failure is expected.
+       (test_main): Use test_randomize.
+       * testsuite/ecc-sqrt-test.c (test_sqrt): Trim allocation.
+       (test_sqrt_ratio): Trim allocation. Fix sqrt_ratio test for v = 0,
+       failure is expected.
+       (test_main): Use test_randomize.
 
 2021-11-13  Niels Möller  <nisse@lysator.liu.se>
 
index 4abfdc7dd964d92d12384d244d37666d2cdc9d52..aecfb43b4f565133a8c9a968f0037b4e840edbe0 100644 (file)
@@ -140,6 +140,7 @@ test_main (void)
   unsigned i;
 
   gmp_randinit_default (rands);
+  test_randomize(rands);
 
   for (i = 0; ecc_curves[i]; i++)
     {
index a865d48738a66a8379166e7acbf79ced1dddb9bb..9d19762fd30a0eadffff7df423ff7f8241f0ef88 100644 (file)
@@ -8,6 +8,7 @@ test_main (void)
   unsigned i;
 
   gmp_randinit_default (rands);
+  test_randomize (rands);
   mpz_init (r);
   
   for (i = 0; ecc_curves[i]; i++)
index 461901af3eae6d7a8740487a1ba4c2dd8ebfb1dd..e2396ad0451c6c1620b679eb899c9fc2f1207750 100644 (file)
@@ -8,6 +8,8 @@ test_main (void)
   unsigned i;
 
   gmp_randinit_default (rands);
+  test_randomize(rands);
+
   mpz_init (r);
 
   for (i = 0; ecc_curves[i]; i++)
index 3e02979262eff629c12ab2b892091aa25ca65b3e..476a6db1661335c2d2b66705e01d890754df8324 100644 (file)
@@ -51,6 +51,7 @@ test_main (void)
   mpz_t r;
 
   gmp_randinit_default (rands);
+  test_randomize(rands);
   
   mpz_init (r);
   
index 377e1870430284144425f9f8e6460e6a0cdf6855..3bb915c88a6078c0cdc4e0d31cd3872b2a241902 100644 (file)
@@ -292,6 +292,8 @@ test_main (void)
   unsigned i;
 
   gmp_randinit_default (rands);
+  test_randomize(rands);
+
   for (i = 0; ecc_curves[i]; i++)
     {
       if (ecc_curves[i]->p.sqrt)
index 640421c55ee734b103b31ebbe2cb5a74babd720c..e17a869c7015ebeb8ea9adbebbab70d1ff2e4f95 100644 (file)
@@ -42,6 +42,7 @@ void test_main (void)
   unsigned i;
 
   gmp_randinit_default (rands);
+  test_randomize(rands);
 
   for (i = 0; ecc_curves[i]; i++)
     {