diff algo.h @ 793:70625eed40c9 ecc

A bit of work on ecdsa for host/auth keys
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Apr 2013 00:50:03 +0800
parents d1575fdc29a6
children 7dcb46da72d9
line wrap: on
line diff
--- a/algo.h	Tue Apr 09 22:47:03 2013 +0800
+++ b/algo.h	Sun Apr 14 00:50:03 2013 +0800
@@ -74,8 +74,10 @@
 };
 
 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 @@
 #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[]);