Skip to content

Commit

Permalink
Merge pull request #6598 from SparkiDev/sm_update_3
Browse files Browse the repository at this point in the history
EVP SM3: fix cast
  • Loading branch information
JacobBarthelmeh committed Jul 12, 2023
2 parents b889b27 + 96f745a commit cf15789
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wolfcrypt/src/evp.c
Original file line number Diff line number Diff line change
Expand Up @@ -10308,8 +10308,7 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD* type)
break;
#ifdef WOLFSSL_SM3
case WC_HASH_TYPE_SM3:
ret = wc_Sm3Update(&ctx->hash.digest.sm3, data,
(unsigned long)sz);
ret = wc_Sm3Update(&ctx->hash.digest.sm3, data, (word32)sz);
if (ret == 0) {
ret = WOLFSSL_SUCCESS;
}
Expand Down

0 comments on commit cf15789

Please sign in to comment.