mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Merge pull request #8972 from SparkiDev/sp_int_8_bit_fix
SP int: fix 8 bit words and sp_clamp_ct
This commit is contained in:
@@ -8025,8 +8025,8 @@ static void sp_clamp_ct(sp_int* a)
|
|||||||
(sp_int_digit)((sp_int_sdigit)(negVal & minusOne) >>
|
(sp_int_digit)((sp_int_sdigit)(negVal & minusOne) >>
|
||||||
(SP_WORD_SIZE - 1));
|
(SP_WORD_SIZE - 1));
|
||||||
#else
|
#else
|
||||||
sp_int_digit zeroMask =
|
sp_size_t zeroMask =
|
||||||
(sp_int_digit)((((sp_int_sword)a->dp[i]) - 1) >> SP_WORD_SIZE);
|
(sp_size_t)((((sp_int_sword)a->dp[i]) - 1) >> SP_WORD_SIZE);
|
||||||
#endif
|
#endif
|
||||||
mask &= (sp_size_t)zeroMask;
|
mask &= (sp_size_t)zeroMask;
|
||||||
used = (sp_size_t)(used + mask);
|
used = (sp_size_t)(used + mask);
|
||||||
|
Reference in New Issue
Block a user