Skip to content

Commit c238def

Browse files
Add cast for public_size
1 parent 81d32f4 commit c238def

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wolfcrypt/src/curve25519.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ int wc_curve25519_make_pub(int public_size, byte* pub, int private_size,
206206
* wc_curve25519_make_pub_blind since it could be called directly. */
207207
#if !defined(WOLFSSL_CURVE25519_BLINDING) || defined(FREESCALE_LTC_ECC)
208208
if (ret == 0) {
209-
ret = wc_curve25519_check_public(pub, public_size,
209+
ret = wc_curve25519_check_public(pub, (word32)public_size,
210210
EC25519_LITTLE_ENDIAN);
211211
}
212212
#endif
@@ -307,7 +307,7 @@ int wc_curve25519_make_pub_blind(int public_size, byte* pub, int private_size,
307307
#endif
308308

309309
if (ret == 0) {
310-
ret = wc_curve25519_check_public(pub, public_size,
310+
ret = wc_curve25519_check_public(pub, (word32)public_size,
311311
EC25519_LITTLE_ENDIAN);
312312
}
313313

0 commit comments

Comments
 (0)