summaryrefslogtreecommitdiff
path: root/ecc-internal.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-09-22 22:07:41 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-09-22 22:07:41 +0200
commit64b9a7f8b361db607a64fd1366dc74f1b73da1e9 (patch)
treef8fd945525f68f4aa8b53985d4e682f19439ea13 /ecc-internal.h
parent296b09cc68dbc1918693ce5c60f0a88ab8aeadb7 (diff)
downloadnettle-64b9a7f8b361db607a64fd1366dc74f1b73da1e9.tar.gz
Renamed and generalized ecc_modq_random -> ecc_mod_random.
Diffstat (limited to 'ecc-internal.h')
-rw-r--r--ecc-internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ecc-internal.h b/ecc-internal.h
index 852662ac..b96751f8 100644
--- a/ecc-internal.h
+++ b/ecc-internal.h
@@ -49,7 +49,7 @@
#define ecc_mod_submul_1 _nettle_ecc_mod_submul_1
#define ecc_mod_mul _nettle_ecc_mod_mul
#define ecc_mod_sqr _nettle_ecc_mod_sqr
-#define ecc_modq_random _nettle_ecc_modq_random
+#define ecc_mod_random _nettle_ecc_mod_random
#define ecc_mod _nettle_ecc_mod
#define ecc_mod_inv _nettle_ecc_mod_inv
#define ecc_hash _nettle_ecc_hash
@@ -232,8 +232,8 @@ ecc_mod_sqr (const struct ecc_modulo *m, mp_limb_t *rp,
/* mod q operations. */
void
-ecc_modq_random (const struct ecc_curve *ecc, mp_limb_t *xp,
- void *ctx, nettle_random_func *random, mp_limb_t *scratch);
+ecc_mod_random (const struct ecc_modulo *m, mp_limb_t *xp,
+ void *ctx, nettle_random_func *random, mp_limb_t *scratch);
void
ecc_hash (const struct ecc_curve *ecc,
@@ -287,7 +287,7 @@ curve25519_eh_to_x (mp_limb_t *xp, const mp_limb_t *p,
(((3 << ECC_MUL_A_EH_WBITS) + 10) * (size))
#endif
#define ECC_ECDSA_SIGN_ITCH(size) (12*(size))
-#define ECC_MODQ_RANDOM_ITCH(size) (size)
+#define ECC_MOD_RANDOM_ITCH(size) (size)
#define ECC_HASH_ITCH(size) (1+(size))
#endif /* NETTLE_ECC_INTERNAL_H_INCLUDED */