forked from wolfSSL/wolfssl
Fix for Visual Studio issue with non-cost in array declaration.
This commit is contained in:
@ -12687,8 +12687,8 @@ static int rsa_pss_test(WC_RNG* rng, RsaKey* key)
|
|||||||
{
|
{
|
||||||
byte digest[WC_MAX_DIGEST_SIZE];
|
byte digest[WC_MAX_DIGEST_SIZE];
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
const char* inStr = "Everyone gets Friday off.";
|
const char inStr[] = "Everyone gets Friday off.";
|
||||||
word32 inLen = (word32)XSTRLEN((char*)inStr);
|
word32 inLen = (word32)(sizeof(inStr)-1); /* do not include NULL term */
|
||||||
word32 outSz;
|
word32 outSz;
|
||||||
word32 plainSz;
|
word32 plainSz;
|
||||||
word32 digestSz;
|
word32 digestSz;
|
||||||
@ -14058,8 +14058,8 @@ WOLFSSL_TEST_SUBROUTINE int rsa_test(void)
|
|||||||
#endif
|
#endif
|
||||||
#if (!defined(WOLFSSL_RSA_VERIFY_ONLY) || defined(WOLFSSL_PUBLIC_MP)) && \
|
#if (!defined(WOLFSSL_RSA_VERIFY_ONLY) || defined(WOLFSSL_PUBLIC_MP)) && \
|
||||||
!defined(WC_NO_RSA_OAEP) && !defined(WC_NO_RNG)
|
!defined(WC_NO_RSA_OAEP) && !defined(WC_NO_RNG)
|
||||||
const char* inStr = "Everyone gets Friday off.";
|
const char inStr[] = "Everyone gets Friday off.";
|
||||||
word32 inLen = (word32)XSTRLEN((char*)inStr);
|
const word32 inLen = (word32)(sizeof(inStr)-1); /* do not include NULL */
|
||||||
const word32 outSz = RSA_TEST_BYTES;
|
const word32 outSz = RSA_TEST_BYTES;
|
||||||
const word32 plainSz = RSA_TEST_BYTES;
|
const word32 plainSz = RSA_TEST_BYTES;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user