summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2021-08-31 11:19:19 +0000
committertb <>2021-08-31 11:19:19 +0000
commitc1743878a38599e5faf4c9eb2d170a17cae4b13f (patch)
tree8c0bfedc53a1c396a1541dc25354f401a4d2ed6f /src
parentbdc69a6742d8e8fef194b3425719a100d1f30e4c (diff)
downloadopenbsd-c1743878a38599e5faf4c9eb2d170a17cae4b13f.tar.gz
openbsd-c1743878a38599e5faf4c9eb2d170a17cae4b13f.tar.bz2
openbsd-c1743878a38599e5faf4c9eb2d170a17cae4b13f.zip
whitespace
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bn/bn_print.c6
-rw-r--r--src/lib/libcrypto/bn/bn_rand.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/bn/bn_print.c b/src/lib/libcrypto/bn/bn_print.c
index de67c03c14..d849b860f9 100644
--- a/src/lib/libcrypto/bn/bn_print.c
+++ b/src/lib/libcrypto/bn/bn_print.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_print.c,v 1.31 2017/01/29 17:49:22 beck Exp $ */ 1/* $OpenBSD: bn_print.c,v 1.32 2021/08/31 11:19:19 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 *
@@ -216,7 +216,7 @@ BN_hex2bn(BIGNUM **bn, const char *a)
216 if ((ret = BN_new()) == NULL) 216 if ((ret = BN_new()) == NULL)
217 return (0); 217 return (0);
218 } else { 218 } else {
219 ret= *bn; 219 ret = *bn;
220 BN_zero(ret); 220 BN_zero(ret);
221 } 221 }
222 222
@@ -228,7 +228,7 @@ BN_hex2bn(BIGNUM **bn, const char *a)
228 m = 0; 228 m = 0;
229 h = 0; 229 h = 0;
230 while (j > 0) { 230 while (j > 0) {
231 m = ((BN_BYTES*2) <= j) ? (BN_BYTES * 2) : j; 231 m = ((BN_BYTES * 2) <= j) ? (BN_BYTES * 2) : j;
232 l = 0; 232 l = 0;
233 for (;;) { 233 for (;;) {
234 c = a[j - m]; 234 c = a[j - m];
diff --git a/src/lib/libcrypto/bn/bn_rand.c b/src/lib/libcrypto/bn/bn_rand.c
index f94ce1dceb..b21692c949 100644
--- a/src/lib/libcrypto/bn/bn_rand.c
+++ b/src/lib/libcrypto/bn/bn_rand.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_rand.c,v 1.24 2020/09/12 17:16:36 tb Exp $ */ 1/* $OpenBSD: bn_rand.c,v 1.25 2021/08/31 11:19:19 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 *
@@ -194,20 +194,20 @@ err:
194 return (ret); 194 return (ret);
195} 195}
196 196
197int 197int
198BN_rand(BIGNUM *rnd, int bits, int top, int bottom) 198BN_rand(BIGNUM *rnd, int bits, int top, int bottom)
199{ 199{
200 return bnrand(0, rnd, bits, top, bottom); 200 return bnrand(0, rnd, bits, top, bottom);
201} 201}
202 202
203int 203int
204BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) 204BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom)
205{ 205{
206 return bnrand(1, rnd, bits, top, bottom); 206 return bnrand(1, rnd, bits, top, bottom);
207} 207}
208 208
209#if 1 209#if 1
210int 210int
211BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) 211BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom)
212{ 212{
213 return bnrand(2, rnd, bits, top, bottom); 213 return bnrand(2, rnd, bits, top, bottom);