diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-08-28 15:41:19 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-08-28 15:41:19 +0200 |
commit | 38672a67042814a188bf3f98d3e9a1bbd40ca668 (patch) | |
tree | 20b7bc764dca1e87ee94d03a249bfb15410d0df3 | |
parent | 1efe68adcdb069ec725b92bfc0a150f177e9a8f1 (diff) | |
download | nettle-38672a67042814a188bf3f98d3e9a1bbd40ca668.tar.gz |
ecdsa-verify.c: Drop include of ecc-internal.h.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | ecdsa-verify.c | 5 |
2 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2014-08-28 Niels Möller <nisse@lysator.liu.se> + * ecdsa-verify.c (ecdsa_verify): Drop include of ecc-internal.h, + use ecc_size function instead. + * ecc-ecdsa-verify.c (ecc_ecdsa_verify): Use the struct ecc_curve function pointers: mul, mul_g, add_hhh, h_to_a. diff --git a/ecdsa-verify.c b/ecdsa-verify.c index 425be5c0..05c174ec 100644 --- a/ecdsa-verify.c +++ b/ecdsa-verify.c @@ -39,14 +39,15 @@ #include <stdlib.h> #include "ecdsa.h" -#include "ecc-internal.h" + +#include "gmp-glue.h" int ecdsa_verify (const struct ecc_point *pub, size_t length, const uint8_t *digest, const struct dsa_signature *signature) { - mp_limb_t size = pub->ecc->size; + mp_limb_t size = ecc_size (pub->ecc); mp_size_t itch = 2*size + ecc_ecdsa_verify_itch (pub->ecc); /* For ECC_MUL_A_WBITS == 0, at most 1512 bytes. With ECC_MUL_A_WBITS == 4, currently needs 67 * ecc->size, at most |