From: Niels Möller Date: Sun, 1 Nov 2020 09:21:35 +0000 (+0100) Subject: testsuite: Show curve bits in test_ecc_point failure message. X-Git-Tag: nettle_3.7rc1~52^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98402b3b32b346a568c0d0d8e56a64f27116250c;p=thirdparty%2Fnettle.git testsuite: Show curve bits in test_ecc_point failure message. --- diff --git a/ChangeLog b/ChangeLog index a1ec16da..eeae4181 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2020-11-01 Niels Möller + + * testsuite/testutils.c (test_ecc_point): Show curve bits on failure. + 2020-10-31 Niels Möller * ecc-internal.h (typedef ecc_mod_func): Updated all assembly diff --git a/testsuite/testutils.c b/testsuite/testutils.c index 1f279e9a..2c6cac40 100644 --- a/testsuite/testutils.c +++ b/testsuite/testutils.c @@ -1698,8 +1698,8 @@ test_ecc_point (const struct ecc_curve *ecc, if (! (test_mpn (ref->x, p, ecc->p.size) && test_mpn (ref->y, p + ecc->p.size, ecc->p.size) )) { - fprintf (stderr, "Incorrect point!\n" - "got: x = "); + fprintf (stderr, "Incorrect point, curve bits %d!\n" + "got: x = ", ecc->p.bit_size); write_mpn (stderr, 16, p, ecc->p.size); fprintf (stderr, "\n" " y = ");