Skip to content

Commit bbd42d7

Browse files
committed
Fix clang errors
1 parent de5e662 commit bbd42d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp_rsa_asym.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static int wp_rsaa_encrypt(wp_RsaAsymCtx* ctx, unsigned char* out,
320320
}
321321
}
322322
else if (ctx->padMode == RSA_NO_PADDING) {
323-
sz = outSize;
323+
sz = (word32)outSize;
324324
rc = wc_RsaDirect((byte*)in, (word32)inLen, out, &sz,
325325
wp_rsa_get_key(ctx->rsa), RSA_PUBLIC_ENCRYPT, &ctx->rng);
326326
if (rc < 0) {
@@ -466,7 +466,7 @@ static int wp_rsaa_decrypt(wp_RsaAsymCtx* ctx, unsigned char* out,
466466
}
467467
}
468468
else if (ctx->padMode == RSA_NO_PADDING) {
469-
sz = outSize;
469+
sz = (word32)outSize;
470470
PRIVATE_KEY_UNLOCK();
471471
rc = wc_RsaDirect((byte*)in, (word32)inLen, out, &sz,
472472
wp_rsa_get_key(ctx->rsa), RSA_PRIVATE_DECRYPT, &ctx->rng);

0 commit comments

Comments
 (0)