comparison rsa.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 750ec4ec4cbe
children ba6fc7afe1c5
comparison
equal deleted inserted replaced
1458:bdd3802c8ac6 1459:06d52bcb8094
41 mp_int* p; 41 mp_int* p;
42 mp_int* q; 42 mp_int* q;
43 43
44 } dropbear_rsa_key; 44 } dropbear_rsa_key;
45 45
46 void buf_put_rsa_sign(buffer* buf, dropbear_rsa_key *key, buffer *data_buf); 46 void buf_put_rsa_sign(buffer* buf, const dropbear_rsa_key *key, const buffer *data_buf);
47 #if DROPBEAR_SIGNKEY_VERIFY 47 #if DROPBEAR_SIGNKEY_VERIFY
48 int buf_rsa_verify(buffer * buf, dropbear_rsa_key *key, buffer *data_buf); 48 int buf_rsa_verify(buffer * buf, const dropbear_rsa_key *key, const buffer *data_buf);
49 #endif 49 #endif
50 int buf_get_rsa_pub_key(buffer* buf, dropbear_rsa_key *key); 50 int buf_get_rsa_pub_key(buffer* buf, dropbear_rsa_key *key);
51 int buf_get_rsa_priv_key(buffer* buf, dropbear_rsa_key *key); 51 int buf_get_rsa_priv_key(buffer* buf, dropbear_rsa_key *key);
52 void buf_put_rsa_pub_key(buffer* buf, dropbear_rsa_key *key); 52 void buf_put_rsa_pub_key(buffer* buf, const dropbear_rsa_key *key);
53 void buf_put_rsa_priv_key(buffer* buf, dropbear_rsa_key *key); 53 void buf_put_rsa_priv_key(buffer* buf, const dropbear_rsa_key *key);
54 void rsa_key_free(dropbear_rsa_key *key); 54 void rsa_key_free(dropbear_rsa_key *key);
55 55
56 #endif /* DROPBEAR_RSA */ 56 #endif /* DROPBEAR_RSA */
57 57
58 #endif /* DROPBEAR_RSA_H_ */ 58 #endif /* DROPBEAR_RSA_H_ */