summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-04-09 18:38:59 +0000
committertb <>2023-04-09 18:38:59 +0000
commit716f7ee66553ba43368106520df77e5efdddef94 (patch)
tree73fbaaed95ac896c0f7ce98ac44d29b35f857db4
parent99f4bd17e99b886eacbdf9496c9fd993845bd447 (diff)
downloadopenbsd-716f7ee66553ba43368106520df77e5efdddef94.tar.gz
openbsd-716f7ee66553ba43368106520df77e5efdddef94.tar.bz2
openbsd-716f7ee66553ba43368106520df77e5efdddef94.zip
Remove some doubled empty lines
-rw-r--r--src/lib/libcrypto/bn/bn_gcd.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libcrypto/bn/bn_gcd.c b/src/lib/libcrypto/bn/bn_gcd.c
index e741ef37dc..c44b933260 100644
--- a/src/lib/libcrypto/bn/bn_gcd.c
+++ b/src/lib/libcrypto/bn/bn_gcd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_gcd.c,v 1.26 2023/04/03 21:43:43 tb Exp $ */ 1/* $OpenBSD: bn_gcd.c,v 1.27 2023/04/09 18:38:59 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 *
@@ -165,7 +165,6 @@ BN_gcd(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx)
165 BIGNUM *a, *b, *t; 165 BIGNUM *a, *b, *t;
166 int ret = 0; 166 int ret = 0;
167 167
168
169 BN_CTX_start(ctx); 168 BN_CTX_start(ctx);
170 if ((a = BN_CTX_get(ctx)) == NULL) 169 if ((a = BN_CTX_get(ctx)) == NULL)
171 goto err; 170 goto err;
@@ -224,7 +223,6 @@ BN_gcd_no_branch(BIGNUM *in, const BIGNUM *a, const BIGNUM *n,
224 BN_init(&local_A); 223 BN_init(&local_A);
225 BN_init(&local_B); 224 BN_init(&local_B);
226 225
227
228 BN_CTX_start(ctx); 226 BN_CTX_start(ctx);
229 if ((A = BN_CTX_get(ctx)) == NULL) 227 if ((A = BN_CTX_get(ctx)) == NULL)
230 goto err; 228 goto err;
@@ -368,7 +366,6 @@ BN_mod_inverse_no_branch(BIGNUM *in, const BIGNUM *a, const BIGNUM *n,
368 BIGNUM *ret = NULL; 366 BIGNUM *ret = NULL;
369 int sign; 367 int sign;
370 368
371
372 BN_init(&local_A); 369 BN_init(&local_A);
373 BN_init(&local_B); 370 BN_init(&local_B);
374 371
@@ -534,7 +531,6 @@ BN_mod_inverse_internal(BIGNUM *in, const BIGNUM *a, const BIGNUM *n, BN_CTX *ct
534 if (ct) 531 if (ct)
535 return BN_mod_inverse_no_branch(in, a, n, ctx); 532 return BN_mod_inverse_no_branch(in, a, n, ctx);
536 533
537
538 BN_CTX_start(ctx); 534 BN_CTX_start(ctx);
539 if ((A = BN_CTX_get(ctx)) == NULL) 535 if ((A = BN_CTX_get(ctx)) == NULL)
540 goto err; 536 goto err;
@@ -614,7 +610,6 @@ BN_mod_inverse_internal(BIGNUM *in, const BIGNUM *a, const BIGNUM *n, BN_CTX *ct
614 goto err; 610 goto err;
615 } 611 }
616 612
617
618 /* Same for A and Y. Afterwards, (2) still holds. */ 613 /* Same for A and Y. Afterwards, (2) still holds. */
619 shift = 0; 614 shift = 0;
620 while (!BN_is_bit_set(A, shift)) /* note that 0 < A */ 615 while (!BN_is_bit_set(A, shift)) /* note that 0 < A */
@@ -634,7 +629,6 @@ BN_mod_inverse_internal(BIGNUM *in, const BIGNUM *a, const BIGNUM *n, BN_CTX *ct
634 goto err; 629 goto err;
635 } 630 }
636 631
637
638 /* We still have (1) and (2). 632 /* We still have (1) and (2).
639 * Both A and B are odd. 633 * Both A and B are odd.
640 * The following computations ensure that 634 * The following computations ensure that