mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
Fix casts in evp.c and build issue in ParseCRL
This commit is contained in:
@@ -36359,7 +36359,7 @@ end:
|
|||||||
}
|
}
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
#endif
|
#endif
|
||||||
#if defined(OPENSSL_EXTRA)
|
#ifdef OPENSSL_EXTRA
|
||||||
/* Parse and store the issuer name. */
|
/* Parse and store the issuer name. */
|
||||||
dcrl->issuerSz = GetASNItem_Length(dataASN[CRLASN_IDX_TBS_ISSUER],
|
dcrl->issuerSz = GetASNItem_Length(dataASN[CRLASN_IDX_TBS_ISSUER],
|
||||||
buff);
|
buff);
|
||||||
@@ -36372,7 +36372,7 @@ end:
|
|||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
ret = ASN_PARSE_E;
|
ret = ASN_PARSE_E;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret == 0) && (dataASN[CRLASN_IDX_TBS_REVOKEDCERTS].tag != 0)) {
|
if ((ret == 0) && (dataASN[CRLASN_IDX_TBS_REVOKEDCERTS].tag != 0)) {
|
||||||
|
@@ -6779,8 +6779,8 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD* type)
|
|||||||
* combines them to a new iv. EVP is given exactly *one* iv,
|
* combines them to a new iv. EVP is given exactly *one* iv,
|
||||||
* so to pass it into chacha, we have to revert that first.
|
* so to pass it into chacha, we have to revert that first.
|
||||||
* The counter comes first in little-endian */
|
* The counter comes first in little-endian */
|
||||||
word32 counter = (uint32_t)iv[0] + (uint32_t)(iv[1] << 8) +
|
word32 counter = (word32)iv[0] + (word32)(iv[1] << 8) +
|
||||||
(uint32_t)(iv[2] << 16) + (uint32_t)(iv[3] << 24);
|
(word32)(iv[2] << 16) + (word32)(iv[3] << 24);
|
||||||
if (wc_Chacha_SetIV(&ctx->cipher.chacha,
|
if (wc_Chacha_SetIV(&ctx->cipher.chacha,
|
||||||
iv + sizeof(counter), counter) != 0) {
|
iv + sizeof(counter), counter) != 0) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user