comparison dss.h @ 1478:3a933956437e coverity

update coverity
author Matt Johnston <matt@ucc.asn.au>
date Fri, 09 Feb 2018 23:49:22 +0800
parents 06d52bcb8094
children ba6fc7afe1c5
comparison
equal deleted inserted replaced
1439:8d24733026c5 1478:3a933956437e
42 } dropbear_dss_key; 42 } dropbear_dss_key;
43 43
44 #define DSS_P_BITS 1024 44 #define DSS_P_BITS 1024
45 #define DSS_Q_BITS 160 45 #define DSS_Q_BITS 160
46 46
47 void buf_put_dss_sign(buffer* buf, dropbear_dss_key *key, buffer *data_buf); 47 void buf_put_dss_sign(buffer* buf, const dropbear_dss_key *key, const buffer *data_buf);
48 #if DROPBEAR_SIGNKEY_VERIFY 48 #if DROPBEAR_SIGNKEY_VERIFY
49 int buf_dss_verify(buffer* buf, dropbear_dss_key *key, buffer *data_buf); 49 int buf_dss_verify(buffer* buf, const dropbear_dss_key *key, const buffer *data_buf);
50 #endif 50 #endif
51 int buf_get_dss_pub_key(buffer* buf, dropbear_dss_key *key); 51 int buf_get_dss_pub_key(buffer* buf, dropbear_dss_key *key);
52 int buf_get_dss_priv_key(buffer* buf, dropbear_dss_key *key); 52 int buf_get_dss_priv_key(buffer* buf, dropbear_dss_key *key);
53 void buf_put_dss_pub_key(buffer* buf, dropbear_dss_key *key); 53 void buf_put_dss_pub_key(buffer* buf, const dropbear_dss_key *key);
54 void buf_put_dss_priv_key(buffer* buf, dropbear_dss_key *key); 54 void buf_put_dss_priv_key(buffer* buf, const dropbear_dss_key *key);
55 void dss_key_free(dropbear_dss_key *key); 55 void dss_key_free(dropbear_dss_key *key);
56 56
57 #endif /* DROPBEAR_DSS */ 57 #endif /* DROPBEAR_DSS */
58 58
59 #endif /* DROPBEAR_DSS_H_ */ 59 #endif /* DROPBEAR_DSS_H_ */