summaryrefslogtreecommitdiffhomepage
path: root/ecc.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-04-09 00:36:04 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-04-09 00:36:04 +0800
commit7f091e70196cdcfbf80d16d508e6bed0bce38022 (patch)
tree4b2fbbf4ee71a61b9156e32d743118eb5a694d98 /ecc.c
parent4f07805d0a658de4b8645ea12471269d006428a9 (diff)
start on ecdsa keys
--HG-- branch : ecc
Diffstat (limited to 'ecc.c')
-rw-r--r--ecc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ecc.c b/ecc.c
index 56ab47a..10ae322 100644
--- a/ecc.c
+++ b/ecc.c
@@ -7,25 +7,24 @@
#ifdef DROPBEAR_ECC
// TODO: use raw bytes for the dp rather than the hex strings in libtomcrypt's ecc.c
-
#ifdef DROPBEAR_ECC_256
const struct dropbear_ecc_curve ecc_curve_nistp256 = {
.dp = &ltc_ecc_sets[0],
- .hash_desc = &sha256_desc,
+ .hashdesc = &sha256_desc,
.name = "nistp256"
};
#endif
#ifdef DROPBEAR_ECC_384
const struct dropbear_ecc_curve ecc_curve_nistp384 = {
.dp = &ltc_ecc_sets[1],
- .hash_desc = &sha384_desc,
+ .hashdesc = &sha384_desc,
.name = "nistp384"
};
#endif
#ifdef DROPBEAR_ECC_521
const struct dropbear_ecc_curve ecc_curve_nistp521 = {
.dp = &ltc_ecc_sets[2],
- .hash_desc = &sha512_desc,
+ .hashdesc = &sha512_desc,
.name = "nistp521"
};
#endif