summaryrefslogtreecommitdiff
path: root/ecdsa-keygen.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-09-22 12:39:19 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-09-22 12:39:19 +0200
commita78c9459fda9204b870350a3e075cd78d448fca2 (patch)
tree5570986a3a7ee931bc4a43b47b6fa62b6133e8cc /ecdsa-keygen.c
parent2b552abd4edc775de854014c7b0135902ca2ecd3 (diff)
downloadnettle-a78c9459fda9204b870350a3e075cd78d448fca2.tar.gz
Introduced struct ecc_modulo.
Diffstat (limited to 'ecdsa-keygen.c')
-rw-r--r--ecdsa-keygen.c6
1 files changed, 3 insertions, 3 deletions
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);
}