diff options
author | Niels Möller <nisse@lysator.liu.se> | 2020-11-08 22:39:25 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2020-11-08 22:39:25 +0100 |
commit | 6d7612dad5b7f7f3fd6fa834ba2f13f1a7a2f237 (patch) | |
tree | fccbf47249d878c220ab29fa6cc991aa50ca7c37 /eddsa-sign.c | |
parent | a065a3559e5ee13161736262287b02537c4a02c6 (diff) | |
download | nettle-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.c | 4 |
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 |