comparison 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
comparison
equal deleted inserted replaced
678:6e0899b56ac4 679:03073a27abb3
116 116
117 #ifdef DROPBEAR_ENABLE_CTR_MODE 117 #ifdef DROPBEAR_ENABLE_CTR_MODE
118 #define LTC_CTR_MODE 118 #define LTC_CTR_MODE
119 #endif 119 #endif
120 120
121 #if defined(DROPBEAR_DSS) && defined(DSS_PROTOK) 121 #define SHA1
122 #define SHA512 122
123 #ifdef DROPBEAR_MD5
124 #define MD5
123 #endif 125 #endif
124 126
125 #define SHA1 127 #ifdef DROPBEAR_SHA256
128 #define SHA256
129 #endif
126 130
127 #ifdef DROPBEAR_MD5_HMAC 131 #ifdef DROPBEAR_SHA512
128 #define MD5 132 #define SHA512
129 #endif 133 #endif
130 134
131 #define LTC_HMAC 135 #define LTC_HMAC
132 136
133 /* Various tidbits of modern neatoness */ 137 /* Various tidbits of modern neatoness */