From a78c9459fda9204b870350a3e075cd78d448fca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Mon, 22 Sep 2014 12:39:19 +0200 Subject: Introduced struct ecc_modulo. --- ecdsa-keygen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ecdsa-keygen.c') diff --git a/ecdsa-keygen.c b/ecdsa-keygen.c index d5b55256..ec3ecfdc 100644 --- a/ecdsa-keygen.c +++ b/ecdsa-keygen.c @@ -49,13 +49,13 @@ ecdsa_generate_keypair (struct ecc_point *pub, { TMP_DECL(p, mp_limb_t, 3*ECC_MAX_SIZE + ECC_MUL_G_ITCH (ECC_MAX_SIZE)); const struct ecc_curve *ecc = pub->ecc; - mp_size_t itch = 3*ecc->size + ecc->mul_g_itch; + mp_size_t itch = 3*ecc->p.size + ecc->mul_g_itch; assert (key->ecc == ecc); TMP_ALLOC (p, itch); ecc_modq_random (ecc, key->p, random_ctx, random, p); - ecc->mul_g (ecc, p, key->p, p + 3*ecc->size); - ecc->h_to_a (ecc, 0, pub->p, p, p + 3*ecc->size); + ecc->mul_g (ecc, p, key->p, p + 3*ecc->p.size); + ecc->h_to_a (ecc, 0, pub->p, p, p + 3*ecc->p.size); } -- cgit v1.2.1