comparison ecdsa.h @ 1511:5916af64acd4 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Sat, 17 Feb 2018 19:29:51 +0800
parents 06d52bcb8094
children 016b86f03e21
comparison
equal deleted inserted replaced
1457:32f990cc96b1 1511:5916af64acd4
21 ecc_key *gen_ecdsa_priv_key(unsigned int bit_size); 21 ecc_key *gen_ecdsa_priv_key(unsigned int bit_size);
22 ecc_key *buf_get_ecdsa_pub_key(buffer* buf); 22 ecc_key *buf_get_ecdsa_pub_key(buffer* buf);
23 ecc_key *buf_get_ecdsa_priv_key(buffer *buf); 23 ecc_key *buf_get_ecdsa_priv_key(buffer *buf);
24 void buf_put_ecdsa_pub_key(buffer *buf, ecc_key *key); 24 void buf_put_ecdsa_pub_key(buffer *buf, ecc_key *key);
25 void buf_put_ecdsa_priv_key(buffer *buf, ecc_key *key); 25 void buf_put_ecdsa_priv_key(buffer *buf, ecc_key *key);
26 enum signkey_type ecdsa_signkey_type(ecc_key * key); 26 enum signkey_type ecdsa_signkey_type(const ecc_key * key);
27 27
28 void buf_put_ecdsa_sign(buffer *buf, ecc_key *key, buffer *data_buf); 28 void buf_put_ecdsa_sign(buffer *buf, const ecc_key *key, const buffer *data_buf);
29 int buf_ecdsa_verify(buffer *buf, ecc_key *key, buffer *data_buf); 29 int buf_ecdsa_verify(buffer *buf, const ecc_key *key, const buffer *data_buf);
30 /* Returns 1 on success */ 30 /* Returns 1 on success */
31 int signkey_is_ecdsa(enum signkey_type type); 31 int signkey_is_ecdsa(enum signkey_type type);
32 32
33 #endif 33 #endif
34 34