fix leanpsk NO_SHA build

pull/1/head
toddouska 2013-04-10 12:42:51 -07:00
parent f535e5428e
commit a2bd6e786d
3 changed files with 8 additions and 1 deletions

View File

@ -1062,7 +1062,7 @@ int hmac_md5_test(void)
} }
#endif /* NO_HMAC && NO_MD5 */ #endif /* NO_HMAC && NO_MD5 */
#ifndef NO_HMAC #if !defined(NO_HMAC) && !defined(NO_SHA)
int hmac_sha_test(void) int hmac_sha_test(void)
{ {
Hmac hmac; Hmac hmac;

View File

@ -20,6 +20,8 @@
*/ */
#ifndef NO_SHA
#ifndef CTAO_CRYPT_SHA_H #ifndef CTAO_CRYPT_SHA_H
#define CTAO_CRYPT_SHA_H #define CTAO_CRYPT_SHA_H
@ -62,4 +64,5 @@ CYASSL_API void ShaFinal(Sha*, byte*);
#endif #endif
#endif /* CTAO_CRYPT_SHA_H */ #endif /* CTAO_CRYPT_SHA_H */
#endif /* NO_SHA */

View File

@ -108,6 +108,10 @@
#endif #endif
#endif #endif
#ifdef NO_SHA
#define SHA_DIGEST_SIZE 20
#endif
#ifdef NO_SHA256 #ifdef NO_SHA256
#define SHA256_DIGEST_SIZE 32 #define SHA256_DIGEST_SIZE 32
#endif #endif