Commit 38672a67 authored by Niels Möller's avatar Niels Möller

ecdsa-verify.c: Drop include of ecc-internal.h.

parent 1efe68ad
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.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment