comparison dss.h @ 760:f336d232fc63 ecc

Make _sign and _verify functions take a buffer* rather than void* and int
author Matt Johnston <matt@ucc.asn.au>
date Sat, 06 Apr 2013 16:00:37 +0800
parents b50f0107e505
children d386defb5376
comparison
equal deleted inserted replaced
759:76fba0856749 760:f336d232fc63
41 /* x is the private part */ 41 /* x is the private part */
42 mp_int* x; 42 mp_int* x;
43 43
44 } dropbear_dss_key; 44 } dropbear_dss_key;
45 45
46 void buf_put_dss_sign(buffer* buf, dropbear_dss_key *key, const unsigned char* data, 46 void buf_put_dss_sign(buffer* buf, dropbear_dss_key *key, buffer *data_buf);
47 unsigned int len);
48 #ifdef DROPBEAR_SIGNKEY_VERIFY 47 #ifdef DROPBEAR_SIGNKEY_VERIFY
49 int buf_dss_verify(buffer* buf, dropbear_dss_key *key, const unsigned char* data, 48 int buf_dss_verify(buffer* buf, dropbear_dss_key *key, buffer *data_buf);
50 unsigned int len);
51 #endif 49 #endif
52 int buf_get_dss_pub_key(buffer* buf, dropbear_dss_key *key); 50 int buf_get_dss_pub_key(buffer* buf, dropbear_dss_key *key);
53 int buf_get_dss_priv_key(buffer* buf, dropbear_dss_key *key); 51 int buf_get_dss_priv_key(buffer* buf, dropbear_dss_key *key);
54 void buf_put_dss_pub_key(buffer* buf, dropbear_dss_key *key); 52 void buf_put_dss_pub_key(buffer* buf, dropbear_dss_key *key);
55 void buf_put_dss_priv_key(buffer* buf, dropbear_dss_key *key); 53 void buf_put_dss_priv_key(buffer* buf, dropbear_dss_key *key);