diff options
author | Rob Austein <sra@hactrn.net> | 2017-05-23 00:07:48 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-05-23 00:08:07 -0400 |
commit | af3f0e2f7a6be49603daf7b97cf8db0fda293a84 (patch) | |
tree | 693c1f5d22e026eab8ce9506d8dae28fbe4b4924 /ecdsa.c | |
parent | d532e6bbcd63c550f91fc97446f6114f37d18bde (diff) | |
parent | f67796b71895f43912a4cd30e9f894946023e811 (diff) |
Merge branch 'master' into ks9
Diffstat (limited to 'ecdsa.c')
-rw-r--r-- | ecdsa.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -969,7 +969,7 @@ static int point_is_on_curve(const ec_point_t * const P, * Generate a new ECDSA key. */ -hal_error_t hal_ecdsa_key_gen(const hal_core_t *core, +hal_error_t hal_ecdsa_key_gen(hal_core_t *core, hal_ecdsa_key_t **key_, void *keybuf, const size_t keybuf_len, const hal_curve_name_t curve_) @@ -1608,7 +1608,7 @@ static hal_error_t decode_signature_pkcs11(const ecdsa_curve_t * const curve, * Sign a caller-supplied hash. */ -hal_error_t hal_ecdsa_sign(const hal_core_t *core, +hal_error_t hal_ecdsa_sign(hal_core_t *core, const hal_ecdsa_key_t * const key, const uint8_t * const hash, const size_t hash_len, uint8_t *signature, size_t *signature_len, const size_t signature_max) @@ -1689,7 +1689,7 @@ hal_error_t hal_ecdsa_sign(const hal_core_t *core, * Verify a signature using a caller-supplied hash. */ -hal_error_t hal_ecdsa_verify(const hal_core_t *core, +hal_error_t hal_ecdsa_verify(hal_core_t *core, const hal_ecdsa_key_t * const key, const uint8_t * const hash, const size_t hash_len, const uint8_t * const signature, const size_t signature_len) |