- Add hmac-sha2-256 and hmac-sha2-512. Needs debugging, seems to be

getting keyed incorrectly

--HG--
branch : sha2
This commit is contained in:
Matt Johnston
2012-05-10 08:38:37 +08:00
parent 10d7a35841
commit c62e53807f
5 changed files with 52 additions and 11 deletions

View File

@@ -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 */