summaryrefslogtreecommitdiffhomepage
path: root/algo.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 /algo.h
parentf842712551cc458532aaddb6f140fe1286cfa9fb (diff)
A bit of work on ecdsa for host/auth keys
--HG-- branch : ecc
Diffstat (limited to 'algo.h')
-rw-r--r--algo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/algo.h b/algo.h
index 4be7cf3..8c41eac 100644
--- a/algo.h
+++ b/algo.h
@@ -74,8 +74,10 @@ struct dropbear_cipher_mode {
};
struct dropbear_hash {
- const struct ltc_hash_descriptor *hashdesc;
+ const struct ltc_hash_descriptor *hash_desc;
const unsigned long keysize;
+ // hashsize may be truncated from the size returned by hash_desc,
+ // eg sha1-96
const unsigned char hashsize;
};
@@ -90,7 +92,7 @@ struct dropbear_kex {
#endif
// both
- const struct ltc_hash_descriptor *hashdesc;
+ const struct ltc_hash_descriptor *hash_desc;
};
int have_algo(char* algo, size_t algolen, algo_type algos[]);