diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-10-18 22:26:01 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-10-18 22:26:01 +0200 |
commit | b645d8924b2163f2a4c417948d599ef3ae5a3ae3 (patch) | |
tree | c4dee8644277eb414047ee08aa34a28ad3c9db15 /testsuite | |
parent | 4418b01d3809e099728a357004fcef0c4897cd62 (diff) | |
download | nettle-b645d8924b2163f2a4c417948d599ef3ae5a3ae3.tar.gz |
Tweaked argument order for _eddsa_verify.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/eddsa-verify-test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/eddsa-verify-test.c b/testsuite/eddsa-verify-test.c index f78057b8..39f972a3 100644 --- a/testsuite/eddsa-verify-test.c +++ b/testsuite/eddsa-verify-test.c @@ -51,7 +51,7 @@ test_eddsa (const struct ecc_curve *ecc, die ("Invalid eddsa public key.\n"); memcpy (csignature, signature, 2*nbytes); - if (!_eddsa_verify (ecc, H, pub, ctx, A, + if (!_eddsa_verify (ecc, H, pub, A, ctx, msg->length, msg->data, csignature, scratch)) { fprintf (stderr, "eddsa_verify failed with valid signature.\n"); @@ -68,7 +68,7 @@ test_eddsa (const struct ecc_curve *ecc, memcpy (csignature, signature, 2*nbytes); csignature[nbytes/3] ^= 0x40; - if (_eddsa_verify (ecc, H, pub, ctx, A, + if (_eddsa_verify (ecc, H, pub, A, ctx, msg->length, msg->data, csignature, scratch)) { fprintf (stderr, @@ -79,7 +79,7 @@ test_eddsa (const struct ecc_curve *ecc, memcpy (csignature, signature, 2*nbytes); csignature[5*nbytes/3] ^= 0x8; - if (_eddsa_verify (ecc, H, pub, ctx, A, + if (_eddsa_verify (ecc, H, pub, A, ctx, msg->length, msg->data, csignature, scratch)) { fprintf (stderr, @@ -90,7 +90,7 @@ test_eddsa (const struct ecc_curve *ecc, memcpy (csignature, signature, 2*nbytes); if (msg->length == 0) { - if (_eddsa_verify (ecc, H, pub, ctx, A, + if (_eddsa_verify (ecc, H, pub, A, ctx, 3, "foo", csignature, scratch)) { fprintf (stderr, @@ -100,7 +100,7 @@ test_eddsa (const struct ecc_curve *ecc, } else { - if (_eddsa_verify (ecc, H, pub, ctx, A, + if (_eddsa_verify (ecc, H, pub, A, ctx, msg->length - 1, msg->data, csignature, scratch)) { @@ -110,7 +110,7 @@ test_eddsa (const struct ecc_curve *ecc, } memcpy (csignature, signature, 2*nbytes); cmsg[2*msg->length / 3] ^= 0x20; - if (_eddsa_verify (ecc, H, pub, ctx, A, + if (_eddsa_verify (ecc, H, pub, A, ctx, msg->length, cmsg, csignature, scratch)) { fprintf (stderr, |