comparison dss.h @ 1459:06d52bcb8094

Pointer parameter could be declared as pointing to const
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 17:16:13 +0200
parents 92717c0fec39
children ba6fc7afe1c5
comparison
equal deleted inserted replaced
1458:bdd3802c8ac6 1459:06d52bcb8094
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_ */