mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
add macro guard for shak128 to test case
This commit is contained in:
@@ -75803,6 +75803,7 @@ static int test_wolfSSL_EVP_DigestFinalXOF(void)
|
||||
ExpectIntEQ(sz, 32);
|
||||
ExpectIntEQ(EVP_MD_CTX_cleanup(&mdCtx), WOLFSSL_SUCCESS);
|
||||
|
||||
#if defined(WOLFSSL_SHAKE128)
|
||||
wolfSSL_EVP_MD_CTX_init(&mdCtx);
|
||||
ExpectIntEQ(EVP_DigestInit(&mdCtx, EVP_shake128()), WOLFSSL_SUCCESS);
|
||||
ExpectIntEQ(EVP_DigestUpdate(&mdCtx, data, 1), WOLFSSL_SUCCESS);
|
||||
@@ -75810,6 +75811,7 @@ static int test_wolfSSL_EVP_DigestFinalXOF(void)
|
||||
ExpectIntEQ(sz, 16);
|
||||
ExpectIntEQ(EVP_MD_CTX_cleanup(&mdCtx), WOLFSSL_SUCCESS);
|
||||
#endif
|
||||
#endif
|
||||
return EXPECT_RESULT();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user