summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjsing <>2023-02-22 06:00:24 +0000
committerjsing <>2023-02-22 06:00:24 +0000
commit8e41b0309d34d49d21759656100773c83a9fc5f0 (patch)
tree23a54add25d807fec8218fe418f7ff85edc4e85b /src/lib
parent222cd28577f92b26b743a1efd78a4b1f22feda41 (diff)
downloadopenbsd-8e41b0309d34d49d21759656100773c83a9fc5f0.tar.gz
openbsd-8e41b0309d34d49d21759656100773c83a9fc5f0.tar.bz2
openbsd-8e41b0309d34d49d21759656100773c83a9fc5f0.zip
Adjust parentheses in mont->ri assignment.
Requested by tb@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/bn/bn_mont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_mont.c b/src/lib/libcrypto/bn/bn_mont.c
index 559811b975..c368e07e22 100644
--- a/src/lib/libcrypto/bn/bn_mont.c
+++ b/src/lib/libcrypto/bn/bn_mont.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_mont.c,v 1.45 2023/02/22 05:25:47 jsing Exp $ */ 1/* $OpenBSD: bn_mont.c,v 1.46 2023/02/22 06:00:24 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -201,7 +201,7 @@ BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx)
201 if (!BN_copy(&mont->N, mod)) 201 if (!BN_copy(&mont->N, mod))
202 goto err; 202 goto err;
203 mont->N.neg = 0; 203 mont->N.neg = 0;
204 mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2; 204 mont->ri = ((BN_num_bits(mod) + BN_BITS2 - 1) / BN_BITS2) * BN_BITS2;
205 if (mont->ri * 2 < mont->ri) 205 if (mont->ri * 2 < mont->ri)
206 goto err; 206 goto err;
207 207