Mercurial > dropbear
comparison ecc.h @ 765:5503e05ab3a4 ecc
- Rename buf_put_ecc_pubkey_string() to buf_put_ecc_raw_pubkey_string()
- Reindent ecc.c properly
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 08 Apr 2013 23:56:31 +0800 |
parents | a78a38e402d1 |
children | d1575fdc29a6 |
comparison
equal
deleted
inserted
replaced
764:2202e854d187 | 765:5503e05ab3a4 |
---|---|
18 extern const struct dropbear_ecc_curve ecc_curve_nistp384; | 18 extern const struct dropbear_ecc_curve ecc_curve_nistp384; |
19 extern const struct dropbear_ecc_curve ecc_curve_nistp521; | 19 extern const struct dropbear_ecc_curve ecc_curve_nistp521; |
20 | 20 |
21 // "pubkey" refers to a point, but LTC uses ecc_key structure for both public | 21 // "pubkey" refers to a point, but LTC uses ecc_key structure for both public |
22 // and private keys | 22 // and private keys |
23 void buf_put_ecc_pubkey_string(buffer *buf, ecc_key *key); | 23 void buf_put_ecc_raw_pubkey_string(buffer *buf, ecc_key *key); |
24 ecc_key * buf_get_ecc_pubkey(buffer *buf, const struct dropbear_ecc_curve *curve); | 24 ecc_key * buf_get_ecc_raw_pubkey(buffer *buf, const struct dropbear_ecc_curve *curve); |
25 int buf_get_ecc_privkey_string(buffer *buf, ecc_key *key); | 25 int buf_get_ecc_privkey_string(buffer *buf, ecc_key *key); |
26 | 26 |
27 mp_int * dropbear_ecc_shared_secret(ecc_key *pub_key, ecc_key *priv_key); | 27 mp_int * dropbear_ecc_shared_secret(ecc_key *pub_key, ecc_key *priv_key); |
28 | 28 |
29 #endif | 29 #endif |