diff options
| author | tb <> | 2021-08-31 11:19:19 +0000 |
|---|---|---|
| committer | tb <> | 2021-08-31 11:19:19 +0000 |
| commit | c1743878a38599e5faf4c9eb2d170a17cae4b13f (patch) | |
| tree | 8c0bfedc53a1c396a1541dc25354f401a4d2ed6f /src | |
| parent | bdc69a6742d8e8fef194b3425719a100d1f30e4c (diff) | |
| download | openbsd-c1743878a38599e5faf4c9eb2d170a17cae4b13f.tar.gz openbsd-c1743878a38599e5faf4c9eb2d170a17cae4b13f.tar.bz2 openbsd-c1743878a38599e5faf4c9eb2d170a17cae4b13f.zip | |
whitespace
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_print.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/bn/bn_rand.c | 8 |
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 | ||
| 197 | int | 197 | int |
| 198 | BN_rand(BIGNUM *rnd, int bits, int top, int bottom) | 198 | BN_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 | ||
| 203 | int | 203 | int |
| 204 | BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) | 204 | BN_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 |
| 210 | int | 210 | int |
| 211 | BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) | 211 | BN_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); |
