comparison ecc.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 d68d61e7056a
comparison
equal deleted inserted replaced
1458:bdd3802c8ac6 1459:06d52bcb8094
27 and private keys */ 27 and private keys */
28 void buf_put_ecc_raw_pubkey_string(buffer *buf, ecc_key *key); 28 void buf_put_ecc_raw_pubkey_string(buffer *buf, ecc_key *key);
29 ecc_key * buf_get_ecc_raw_pubkey(buffer *buf, const struct dropbear_ecc_curve *curve); 29 ecc_key * buf_get_ecc_raw_pubkey(buffer *buf, const struct dropbear_ecc_curve *curve);
30 int buf_get_ecc_privkey_string(buffer *buf, ecc_key *key); 30 int buf_get_ecc_privkey_string(buffer *buf, ecc_key *key);
31 31
32 mp_int * dropbear_ecc_shared_secret(ecc_key *pub_key, ecc_key *priv_key); 32 mp_int * dropbear_ecc_shared_secret(ecc_key *pub_key, const ecc_key *priv_key);
33 33
34 #endif 34 #endif
35 35
36 #endif /* DROPBEAR_DROPBEAR_ECC_H */ 36 #endif /* DROPBEAR_DROPBEAR_ECC_H */