summaryrefslogtreecommitdiff
path: root/eddsa-sign.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-11-08 22:39:25 +0100
committerNiels Möller <nisse@lysator.liu.se>2020-11-08 22:39:25 +0100
commit6d7612dad5b7f7f3fd6fa834ba2f13f1a7a2f237 (patch)
treefccbf47249d878c220ab29fa6cc991aa50ca7c37 /eddsa-sign.c
parenta065a3559e5ee13161736262287b02537c4a02c6 (diff)
downloadnettle-6d7612dad5b7f7f3fd6fa834ba2f13f1a7a2f237.tar.gz
Updated itch macros for ecc point multiplication and signaturesrefactor-ecc-mod
Diffstat (limited to 'eddsa-sign.c')
-rw-r--r--eddsa-sign.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eddsa-sign.c b/eddsa-sign.c
index c1a23cd7..f5dda6f0 100644
--- a/eddsa-sign.c
+++ b/eddsa-sign.c
@@ -45,8 +45,8 @@
mp_size_t
_eddsa_sign_itch (const struct ecc_curve *ecc)
{
- assert (_eddsa_compress_itch (ecc) <= ecc->mul_g_itch);
- return 5*ecc->p.size + ecc->mul_g_itch;
+ assert (ecc->mul_g_itch <= _eddsa_compress_itch (ecc));
+ return 5*ecc->p.size + _eddsa_compress_itch (ecc);
}
void