diff options
Diffstat (limited to 'crypto/bn/rsaz_exp_x2.c')
-rw-r--r-- | crypto/bn/rsaz_exp_x2.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crypto/bn/rsaz_exp_x2.c b/crypto/bn/rsaz_exp_x2.c index 70705486a1..e9a8e3cbbd 100644 --- a/crypto/bn/rsaz_exp_x2.c +++ b/crypto/bn/rsaz_exp_x2.c @@ -576,11 +576,7 @@ static void to_words52(BN_ULONG *out, int out_len, out_len--; } - while (out_len > 0) { - *out = 0; - out_len--; - out++; - } + memset(out, 0, out_len * sizeof(BN_ULONG)); } static ossl_inline void put_digit(uint8_t *out, int out_len, uint64_t digit) |