summaryrefslogtreecommitdiff
path: root/ecc-internal.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-08-23 23:02:17 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-08-23 23:02:17 +0200
commitb9f98cb7360ddf563419ad236911347ba71a0961 (patch)
tree5c57bc631f55cfe06bfc83790dd98cdded5a5566 /ecc-internal.h
parent73dddcc44a85ef901584228ded6c3ea79622ce5f (diff)
downloadnettle-b9f98cb7360ddf563419ad236911347ba71a0961.tar.gz
Reordered struct ecc_curve, moved function pointers before pointers to bignum constants.
Diffstat (limited to 'ecc-internal.h')
-rw-r--r--ecc-internal.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ecc-internal.h b/ecc-internal.h
index 2589eb60..d180122b 100644
--- a/ecc-internal.h
+++ b/ecc-internal.h
@@ -102,6 +102,11 @@ struct ecc_curve
unsigned short pippenger_k;
unsigned short pippenger_c;
+ ecc_mod_func *modp;
+ ecc_mod_func *redc;
+ ecc_mod_func *reduce;
+ ecc_mod_func *modq;
+
/* The prime p. */
const mp_limb_t *p;
const mp_limb_t *b;
@@ -115,11 +120,6 @@ struct ecc_curve
equivalent Edwards curve. */
const mp_limb_t *edwards_root;
- ecc_mod_func *modp;
- ecc_mod_func *redc;
- ecc_mod_func *reduce;
- ecc_mod_func *modq;
-
/* B^size mod p. Expected to have at least 32 leading zeros
(equality for secp_256r1). */
const mp_limb_t *Bmodp;