diff libtomcrypt/src/headers/tomcrypt_custom.h @ 679:03073a27abb3 sha2

- Add hmac-sha2-256 and hmac-sha2-512. Needs debugging, seems to be getting keyed incorrectly
author Matt Johnston <matt@ucc.asn.au>
date Thu, 10 May 2012 08:38:37 +0800
parents ae1df0cc3f18
children b07eb3dc23ec
line wrap: on
line diff
--- a/libtomcrypt/src/headers/tomcrypt_custom.h	Wed May 09 22:52:58 2012 +0800
+++ b/libtomcrypt/src/headers/tomcrypt_custom.h	Thu May 10 08:38:37 2012 +0800
@@ -118,14 +118,18 @@
 #define LTC_CTR_MODE
 #endif
 
-#if defined(DROPBEAR_DSS) && defined(DSS_PROTOK)
-#define SHA512
+#define SHA1
+
+#ifdef DROPBEAR_MD5
+#define MD5
 #endif
 
-#define SHA1
+#ifdef DROPBEAR_SHA256
+#define SHA256
+#endif
 
-#ifdef DROPBEAR_MD5_HMAC
-#define MD5
+#ifdef DROPBEAR_SHA512
+#define SHA512
 #endif
 
 #define LTC_HMAC