summaryrefslogtreecommitdiffhomepage
path: root/algo.h
diff options
context:
space:
mode:
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[]);