summaryrefslogtreecommitdiff
path: root/ecc-internal.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2019-12-09 19:28:15 +0100
committerNiels Möller <nisse@lysator.liu.se>2019-12-09 19:28:15 +0100
commita5e0d46377dd0c0331c3990ef7ce377564726919 (patch)
tree8f81bbec3a62b71edbbf8e03728833775fa8a96d /ecc-internal.h
parentb5ae97a8892fd4ad2021d58d4af87d95314a8f44 (diff)
downloadnettle-a5e0d46377dd0c0331c3990ef7ce377564726919.tar.gz
Revert itch macro changes.curve448
We now have h_to_a_itch <= mul_itch, mul_g_itch. Add asserts at a few places relying on this. (ECC_ECDSA_KEYGEN_ITCH, ECC_MAX): Delete macros. (ECC_ECDSA_SIGN_ITCH): Revert previous change.
Diffstat (limited to 'ecc-internal.h')
-rw-r--r--ecc-internal.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/ecc-internal.h b/ecc-internal.h
index a3116101..a7c7fa15 100644
--- a/ecc-internal.h
+++ b/ecc-internal.h
@@ -439,11 +439,8 @@ curve448_eh_to_x (mp_limb_t *xp, const mp_limb_t *p,
#define ECC_MUL_A_EH_ITCH(size) \
(((3 << ECC_MUL_A_EH_WBITS) + 10) * (size))
#endif
-#define ECC_ECDSA_KEYGEN_ITCH(size) (11*(size))
-#define ECC_ECDSA_SIGN_ITCH(size) (13*(size))
+#define ECC_ECDSA_SIGN_ITCH(size) (12*(size))
#define ECC_MOD_RANDOM_ITCH(size) (size)
#define ECC_HASH_ITCH(size) (1+(size))
-#define ECC_MAX(x,y) ((x) > (y) ? (x) : (y))
-
#endif /* NETTLE_ECC_INTERNAL_H_INCLUDED */