We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b889b27 + 96f745a commit cf15789Copy full SHA for cf15789
1 file changed
wolfcrypt/src/evp.c
@@ -10308,8 +10308,7 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD* type)
10308
break;
10309
#ifdef WOLFSSL_SM3
10310
case WC_HASH_TYPE_SM3:
10311
- ret = wc_Sm3Update(&ctx->hash.digest.sm3, data,
10312
- (unsigned long)sz);
+ ret = wc_Sm3Update(&ctx->hash.digest.sm3, data, (word32)sz);
10313
if (ret == 0) {
10314
ret = WOLFSSL_SUCCESS;
10315
}
0 commit comments