summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2022-12-08 07:18:47 +0000
committertb <>2022-12-08 07:18:47 +0000
commit2a9849a4fa03ac30a7766bfc597d055a16a07e83 (patch)
tree2ee17dd793ff9c16850bfe1ba74ef2bc68d8f847
parent2b85b069ff24153ddd491689b70f49f463f7ec09 (diff)
downloadopenbsd-2a9849a4fa03ac30a7766bfc597d055a16a07e83.tar.gz
openbsd-2a9849a4fa03ac30a7766bfc597d055a16a07e83.tar.bz2
openbsd-2a9849a4fa03ac30a7766bfc597d055a16a07e83.zip
bn_mod_exp test: drop extra parentheses for readability
-rw-r--r--src/regress/lib/libcrypto/bn/bn_mod_exp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mod_exp.c b/src/regress/lib/libcrypto/bn/bn_mod_exp.c
index b4c84a05c9..aca2ee68fd 100644
--- a/src/regress/lib/libcrypto/bn/bn_mod_exp.c
+++ b/src/regress/lib/libcrypto/bn/bn_mod_exp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_mod_exp.c,v 1.10 2022/12/05 00:24:44 tb Exp $ */ 1/* $OpenBSD: bn_mod_exp.c,v 1.11 2022/12/08 07:18:47 tb 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 *
@@ -162,15 +162,15 @@ main(int argc, char *argv[])
162 goto err; 162 goto err;
163 163
164 for (i = 0; i < 200; i++) { 164 for (i = 0; i < 200; i++) {
165 c = (arc4random() % BN_BITS) - BN_BITS2; 165 c = arc4random() % BN_BITS - BN_BITS2;
166 if (!BN_rand(a, NUM_BITS + c, 0, 0)) 166 if (!BN_rand(a, NUM_BITS + c, 0, 0))
167 goto err; 167 goto err;
168 168
169 c = (arc4random() % BN_BITS) - BN_BITS2; 169 c = arc4random() % BN_BITS - BN_BITS2;
170 if (!BN_rand(b, NUM_BITS + c, 0, 0)) 170 if (!BN_rand(b, NUM_BITS + c, 0, 0))
171 goto err; 171 goto err;
172 172
173 c = (arc4random() % BN_BITS) - BN_BITS2; 173 c = arc4random() % BN_BITS - BN_BITS2;
174 if (!BN_rand(m, NUM_BITS + c, 0, 1)) 174 if (!BN_rand(m, NUM_BITS + c, 0, 1))
175 goto err; 175 goto err;
176 176