forked from wolfSSL/wolfssl
update macro guard on SHA256 transform call
This commit is contained in:
@ -18134,7 +18134,8 @@ size_t wolfSSL_get_client_random(const WOLFSSL* ssl, unsigned char* out,
|
|||||||
|
|
||||||
#if defined(OPENSSL_EXTRA)
|
#if defined(OPENSSL_EXTRA)
|
||||||
#if !defined(HAVE_SELFTEST) && (!defined(HAVE_FIPS) || \
|
#if !defined(HAVE_SELFTEST) && (!defined(HAVE_FIPS) || \
|
||||||
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2)))
|
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2))) && \
|
||||||
|
!defined(WOLFSSL_DEVCRYPTO_HASH) && !defined(WOLFSSL_AFALG_HASH)
|
||||||
/* Apply SHA256 transformation to the data */
|
/* Apply SHA256 transformation to the data */
|
||||||
int wolfSSL_SHA256_Transform(WOLFSSL_SHA256_CTX* sha256,
|
int wolfSSL_SHA256_Transform(WOLFSSL_SHA256_CTX* sha256,
|
||||||
const unsigned char* data)
|
const unsigned char* data)
|
||||||
|
@ -39005,7 +39005,8 @@ static void test_wolfSSL_SHA256_Transform(void)
|
|||||||
{
|
{
|
||||||
#if defined(OPENSSL_EXTRA) && !defined(NO_SHA256)
|
#if defined(OPENSSL_EXTRA) && !defined(NO_SHA256)
|
||||||
#if !defined(HAVE_SELFTEST) && (!defined(HAVE_FIPS) || \
|
#if !defined(HAVE_SELFTEST) && (!defined(HAVE_FIPS) || \
|
||||||
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2)))
|
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2))) && \
|
||||||
|
!defined(WOLFSSL_DEVCRYPTO_HASH) && !defined(WOLFSSL_AFALG_HASH)
|
||||||
byte input1[] = "";
|
byte input1[] = "";
|
||||||
byte input2[] = "abc";
|
byte input2[] = "abc";
|
||||||
byte local[WC_SHA256_BLOCK_SIZE];
|
byte local[WC_SHA256_BLOCK_SIZE];
|
||||||
|
Reference in New Issue
Block a user