mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
tests/api.c: in test_wc_PKCS7_BER(), provide for !NO_DES3 && !NO_RSA && WOLFSSL_SP_MATH case.
This commit is contained in:
@ -23170,8 +23170,13 @@ static void test_wc_PKCS7_BER(void)
|
||||
pkcs7->privateKey = der;
|
||||
pkcs7->privateKeySz = derSz;
|
||||
#ifndef NO_RSA
|
||||
#ifdef WOLFSSL_SP_MATH
|
||||
AssertIntEQ(wc_PKCS7_DecodeEnvelopedData(pkcs7, berContent,
|
||||
sizeof(berContent), decoded, sizeof(decoded)), WC_KEY_SIZE_E);
|
||||
#else
|
||||
AssertIntGT(wc_PKCS7_DecodeEnvelopedData(pkcs7, berContent,
|
||||
sizeof(berContent), decoded, sizeof(decoded)), 0);
|
||||
#endif
|
||||
#else
|
||||
AssertIntEQ(wc_PKCS7_DecodeEnvelopedData(pkcs7, berContent,
|
||||
sizeof(berContent), decoded, sizeof(decoded)), NOT_COMPILED_IN);
|
||||
|
Reference in New Issue
Block a user