mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 13:40:49 +02:00
tests/api/test_pkcs7.c: in test_wc_PKCS7_BER(), in expected-failure wc_PKCS7_DecodeEnvelopedData() in WOLFSSL_SP_MATH build, allow failure with either WC_KEY_SIZE_E or BUFFER_E, to accommodate blinding added by #10128 / 589feabc0c.
This commit is contained in:
@@ -4577,8 +4577,12 @@ int test_wc_PKCS7_BER(void)
|
||||
}
|
||||
#ifndef NO_RSA
|
||||
#ifdef WOLFSSL_SP_MATH
|
||||
ExpectIntEQ(wc_PKCS7_DecodeEnvelopedData(pkcs7, berContent,
|
||||
sizeof(berContent), decoded, sizeof(decoded)), WC_NO_ERR_TRACE(WC_KEY_SIZE_E));
|
||||
if (EXPECT_SUCCESS()) {
|
||||
ret = wc_PKCS7_DecodeEnvelopedData(
|
||||
pkcs7, berContent, sizeof(berContent), decoded, sizeof(decoded));
|
||||
ExpectTrue((ret == WC_NO_ERR_TRACE(WC_KEY_SIZE_E)) ||
|
||||
(ret == WC_NO_ERR_TRACE(BUFFER_E)));
|
||||
}
|
||||
#else
|
||||
ExpectIntGT(wc_PKCS7_DecodeEnvelopedData(pkcs7, berContent,
|
||||
sizeof(berContent), decoded, sizeof(decoded)), 0);
|
||||
|
||||
Reference in New Issue
Block a user