summaryrefslogtreecommitdiffhomepage
path: root/ecc.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-04-14 00:50:03 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-04-14 00:50:03 +0800
commit5c87c6a435ab1791294c412abe32aa629b42fdc7 (patch)
tree6986d3354125438325538674274b82455ce8589a /ecc.h
parentf842712551cc458532aaddb6f140fe1286cfa9fb (diff)
A bit of work on ecdsa for host/auth keys
--HG-- branch : ecc
Diffstat (limited to 'ecc.h')
-rw-r--r--ecc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ecc.h b/ecc.h
index 7791a70..9744de2 100644
--- a/ecc.h
+++ b/ecc.h
@@ -11,8 +11,8 @@
struct dropbear_ecc_curve {
int ltc_size; // to match the byte sizes in ltc_ecc_sets[]
const ltc_ecc_set_type *dp; // curve domain parameters
- const struct ltc_hash_descriptor *hashdesc;
- const char *name;
+ const struct ltc_hash_descriptor *hash_desc;
+ const unsigned char *name;
};
extern struct dropbear_ecc_curve ecc_curve_nistp256;
@@ -21,6 +21,7 @@ extern struct dropbear_ecc_curve ecc_curve_nistp521;
extern struct dropbear_ecc_curve *dropbear_ecc_curves[];
void dropbear_ecc_fill_dp();
+struct dropbear_ecc_curve* curve_for_dp(const ltc_ecc_set_type *dp);
// "pubkey" refers to a point, but LTC uses ecc_key structure for both public
// and private keys