Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
38672a67
Commit
38672a67
authored
Aug 28, 2014
by
Niels Möller
Browse files
ecdsa-verify.c: Drop include of ecc-internal.h.
parent
1efe68ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
38672a67
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.
...
...
ecdsa-verify.c
View file @
38672a67
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment