summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_mont.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2015-02-05 15:07:40 -0500
committerRich Salz <rsalz@openssl.org>2015-02-05 15:07:40 -0500
commitfe6d2a339b1ef3650de1b12e26189e532cb7d8bc (patch)
tree4b237176ed88da930528df61db044f041f5bb039 /crypto/bn/bn_mont.c
parent8dd94afb18b27edd987b471914a616f9800a5e58 (diff)
Use memset in bn_mont
Use memset() not inline code. Compilers are smarter now. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/bn/bn_mont.c')
-rw-r--r--crypto/bn/bn_mont.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c
index 175145e7b7..45deed7558 100644
--- a/crypto/bn/bn_mont.c
+++ b/crypto/bn/bn_mont.c
@@ -196,12 +196,7 @@ static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont)
rp = r->d;
/* clear the top words of T */
-# if 1
- for (i = r->top; i < max; i++) /* memset? XXX */
- rp[i] = 0;
-# else
memset(&(rp[r->top]), 0, (max - r->top) * sizeof(BN_ULONG));
-# endif
r->top = max;
n0 = mont->n0[0];