Skip to content
Snippets Groups Projects
Commit e65d9fc9 authored by Daiki Ueno's avatar Daiki Ueno Committed by Niels Möller
Browse files

ecc-mul-test: Fix mpn_cmp calls


Signed-off-by: default avatarDaiki Ueno <dueno@redhat.com>
parent 57e30426
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ test_main (void) ...@@ -26,7 +26,7 @@ test_main (void)
ecc->mul (ecc, p, n, ecc->g, scratch); ecc->mul (ecc, p, n, ecc->g, scratch);
ecc->h_to_a (ecc, 0, p, p, scratch); ecc->h_to_a (ecc, 0, p, p, scratch);
if (mpn_cmp (p, ecc->g, 2*size != 0)) if (mpn_cmp (p, ecc->g, 2*size) != 0)
die ("curve %d: ecc->mul with n = 1 failed.\n", ecc->p.bit_size); die ("curve %d: ecc->mul with n = 1 failed.\n", ecc->p.bit_size);
for (n[0] = 2; n[0] <= 4; n[0]++) for (n[0] = 2; n[0] <= 4; n[0]++)
......
...@@ -25,7 +25,7 @@ test_main (void) ...@@ -25,7 +25,7 @@ test_main (void)
ecc->mul_g (ecc, p, n, scratch); ecc->mul_g (ecc, p, n, scratch);
ecc->h_to_a (ecc, 0, p, p, scratch); ecc->h_to_a (ecc, 0, p, p, scratch);
if (mpn_cmp (p, ecc->g, 2*size != 0)) if (mpn_cmp (p, ecc->g, 2*size) != 0)
{ {
fprintf (stderr, "ecc->mul_g with n = 1 failed.\n"); fprintf (stderr, "ecc->mul_g with n = 1 failed.\n");
abort (); abort ();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment