summaryrefslogtreecommitdiffhomepage
path: root/ecc.h
diff options
context:
space:
mode:
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