|
@@ -4627,7 +4627,7 @@ static int PKCS7_VerifySignedData(PKCS7* pkcs7, const byte* hashBuf,
|
|
|
WOLFSSL_MSG("PKCS#7 signedData needs to be version 1 or 3");
|
|
|
ret = ASN_VERSION_E;
|
|
|
}
|
|
|
- pkcs7->version = version;
|
|
|
+ pkcs7->version = (byte)version;
|
|
|
|
|
|
/* Get the set of DigestAlgorithmIdentifiers */
|
|
|
if (ret == 0 && GetSet(pkiMsg, &idx, &length, pkiMsgSz) < 0)
|
|
@@ -4913,7 +4913,7 @@ static int PKCS7_VerifySignedData(PKCS7* pkcs7, const byte* hashBuf,
|
|
|
if (multiPart) {
|
|
|
pkcs7->stream->expected = contentLen + ASN_TAG_SZ;
|
|
|
}
|
|
|
- pkcs7->stream->multi = multiPart;
|
|
|
+ pkcs7->stream->multi = (byte)multiPart;
|
|
|
|
|
|
#endif
|
|
|
wc_PKCS7_ChangeState(pkcs7, WC_PKCS7_VERIFY_STAGE3);
|
|
@@ -5221,7 +5221,7 @@ static int PKCS7_VerifySignedData(PKCS7* pkcs7, const byte* hashBuf,
|
|
|
pkcs7->stream = stream;
|
|
|
#endif
|
|
|
}
|
|
|
- pkcs7->version = version;
|
|
|
+ pkcs7->version = (byte)version;
|
|
|
#ifdef ASN_BER_TO_DER
|
|
|
pkcs7->der = der;
|
|
|
#endif
|
|
@@ -7692,7 +7692,7 @@ static int wc_PKCS7_PwriKek_KeyWrap(PKCS7* pkcs7, const byte* kek, word32 kekSz,
|
|
|
if (*outSz < (word32)outLen)
|
|
|
return BUFFER_E;
|
|
|
|
|
|
- out[0] = cekSz;
|
|
|
+ out[0] = (byte)cekSz;
|
|
|
out[1] = ~cek[0];
|
|
|
out[2] = ~cek[1];
|
|
|
out[3] = ~cek[2];
|
|
@@ -10845,7 +10845,7 @@ WOLFSSL_API int wc_PKCS7_DecodeEnvelopedData(PKCS7* pkcs7, byte* in,
|
|
|
byte* encryptedContent = NULL;
|
|
|
int explicitOctet = 0;
|
|
|
word32 localIdx;
|
|
|
- byte tag;
|
|
|
+ byte tag = 0;
|
|
|
|
|
|
if (pkcs7 == NULL)
|
|
|
return BAD_FUNC_ARG;
|