mirror of https://github.com/wolfSSL/wolfssl.git
fix leanpsk NO_SHA build
parent
f535e5428e
commit
a2bd6e786d
|
@ -1062,7 +1062,7 @@ int hmac_md5_test(void)
|
|||
}
|
||||
#endif /* NO_HMAC && NO_MD5 */
|
||||
|
||||
#ifndef NO_HMAC
|
||||
#if !defined(NO_HMAC) && !defined(NO_SHA)
|
||||
int hmac_sha_test(void)
|
||||
{
|
||||
Hmac hmac;
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
*/
|
||||
|
||||
|
||||
#ifndef NO_SHA
|
||||
|
||||
#ifndef CTAO_CRYPT_SHA_H
|
||||
#define CTAO_CRYPT_SHA_H
|
||||
|
||||
|
@ -62,4 +64,5 @@ CYASSL_API void ShaFinal(Sha*, byte*);
|
|||
#endif
|
||||
|
||||
#endif /* CTAO_CRYPT_SHA_H */
|
||||
#endif /* NO_SHA */
|
||||
|
||||
|
|
|
@ -108,6 +108,10 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef NO_SHA
|
||||
#define SHA_DIGEST_SIZE 20
|
||||
#endif
|
||||
|
||||
#ifdef NO_SHA256
|
||||
#define SHA256_DIGEST_SIZE 32
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue