diff options
author | tb <> | 2022-07-26 07:09:24 +0000 |
---|---|---|
committer | tb <> | 2022-07-26 07:09:24 +0000 |
commit | 7535f3659ad4907402c99ae736e3307129e9502e (patch) | |
tree | 84404782adfc3ac51a6993f306b268c2a6d33614 /src | |
parent | 457cb62b1df64f76df277ce457578fef52103861 (diff) | |
download | openbsd-7535f3659ad4907402c99ae736e3307129e9502e.tar.gz openbsd-7535f3659ad4907402c99ae736e3307129e9502e.tar.bz2 openbsd-7535f3659ad4907402c99ae736e3307129e9502e.zip |
minor tweaks: unwrap a line, tweak a comment and zap an empty line
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libcrypto/bn/general/bn_isqrt.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/regress/lib/libcrypto/bn/general/bn_isqrt.c b/src/regress/lib/libcrypto/bn/general/bn_isqrt.c index 24e15a8aee..bf3947186a 100644 --- a/src/regress/lib/libcrypto/bn/general/bn_isqrt.c +++ b/src/regress/lib/libcrypto/bn/general/bn_isqrt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_isqrt.c,v 1.1 2022/07/25 20:48:57 tb Exp $ */ | 1 | /* $OpenBSD: bn_isqrt.c,v 1.2 2022/07/26 07:09:24 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> |
4 | * | 4 | * |
@@ -98,8 +98,7 @@ check_tables(int print) | |||
98 | if (!print) | 98 | if (!print) |
99 | continue; | 99 | continue; |
100 | 100 | ||
101 | printf("const uint8_t is_square_mod_%d[] = {\n\t", | 101 | printf("const uint8_t is_square_mod_%d[] = {\n\t", fill[i]); |
102 | fill[i]); | ||
103 | for (j = 0; j < fill[i]; j++) { | 102 | for (j = 0; j < fill[i]; j++) { |
104 | const char *end = " "; | 103 | const char *end = " "; |
105 | 104 | ||
@@ -225,7 +224,7 @@ isqrt_test(void) | |||
225 | } | 224 | } |
226 | 225 | ||
227 | /* | 226 | /* |
228 | * Finally check that isqrt(n^2 - 1) + 1 = n. | 227 | * Finally check that isqrt(n^2 - 1) + 1 == n. |
229 | */ | 228 | */ |
230 | 229 | ||
231 | if (!BN_sub(testcase, n_sqr, BN_value_one())) | 230 | if (!BN_sub(testcase, n_sqr, BN_value_one())) |
@@ -245,7 +244,6 @@ isqrt_test(void) | |||
245 | failed = 1; | 244 | failed = 1; |
246 | } | 245 | } |
247 | 246 | ||
248 | |||
249 | BN_CTX_end(ctx); | 247 | BN_CTX_end(ctx); |
250 | BN_CTX_free(ctx); | 248 | BN_CTX_free(ctx); |
251 | 249 | ||