diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-04-14 00:50:03 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-04-14 00:50:03 +0800 |
commit | 5c87c6a435ab1791294c412abe32aa629b42fdc7 (patch) | |
tree | 6986d3354125438325538674274b82455ce8589a /algo.h | |
parent | f842712551cc458532aaddb6f140fe1286cfa9fb (diff) |
A bit of work on ecdsa for host/auth keys
--HG--
branch : ecc
Diffstat (limited to 'algo.h')
-rw-r--r-- | algo.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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[]); |