[core] check ifdef WOLFSSL_SHA512 for SHA512 avail

This commit is contained in:
Glenn Strauss 2021-01-16 15:51:49 -05:00
parent 2d94d56fe5
commit fdf45433c8
1 changed files with 2 additions and 0 deletions

View File

@ -391,6 +391,7 @@ SHA256_Update(SHA256_CTX *ctx, const void *data, size_t length)
#endif
#ifndef NO_SHA512
#ifdef WOLFSSL_SHA512
#include <wolfssl/wolfcrypt/sha512.h>
#include <wolfssl/openssl/sha.h>
#undef SHA512_Init
@ -415,6 +416,7 @@ SHA512_Update(SHA512_CTX *ctx, const void *data, size_t length)
return 1;
}
#endif
#endif
#elif defined(USE_OPENSSL_CRYPTO)