summaryrefslogtreecommitdiffhomepage
path: root/libtomcrypt
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2012-05-10 08:38:37 +0800
committerMatt Johnston <matt@ucc.asn.au>2012-05-10 08:38:37 +0800
commitc62e53807f6e7cf49544cbd7103929282a628311 (patch)
tree4877f61931c74cf0182d35dca67193049a2ccb95 /libtomcrypt
parent10d7a358416e4125b05b0e28f4175659febdcb32 (diff)
- Add hmac-sha2-256 and hmac-sha2-512. Needs debugging, seems to be
getting keyed incorrectly --HG-- branch : sha2
Diffstat (limited to 'libtomcrypt')
-rw-r--r--libtomcrypt/src/headers/tomcrypt_custom.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/libtomcrypt/src/headers/tomcrypt_custom.h b/libtomcrypt/src/headers/tomcrypt_custom.h
index 12bdb7f..acc149a 100644
--- a/libtomcrypt/src/headers/tomcrypt_custom.h
+++ b/libtomcrypt/src/headers/tomcrypt_custom.h
@@ -118,16 +118,20 @@
#define LTC_CTR_MODE
#endif
-#if defined(DROPBEAR_DSS) && defined(DSS_PROTOK)
-#define SHA512
-#endif
-
#define SHA1
-#ifdef DROPBEAR_MD5_HMAC
+#ifdef DROPBEAR_MD5
#define MD5
#endif
+#ifdef DROPBEAR_SHA256
+#define SHA256
+#endif
+
+#ifdef DROPBEAR_SHA512
+#define SHA512
+#endif
+
#define LTC_HMAC
/* Various tidbits of modern neatoness */