diff options
author | tb <> | 2023-03-26 19:09:42 +0000 |
---|---|---|
committer | tb <> | 2023-03-26 19:09:42 +0000 |
commit | 9b31f9948a949769a2079f7e09b17226e584993d (patch) | |
tree | 5064ac55b84d6c0dbded1f97370b2ed9c5840a42 /src/lib/libcrypto/bn/bn_exp.c | |
parent | 3d89c2c784f0833844993c6b017566209f36071e (diff) | |
download | openbsd-9b31f9948a949769a2079f7e09b17226e584993d.tar.gz openbsd-9b31f9948a949769a2079f7e09b17226e584993d.tar.bz2 openbsd-9b31f9948a949769a2079f7e09b17226e584993d.zip |
Minor whitespace tidying
Diffstat (limited to 'src/lib/libcrypto/bn/bn_exp.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_exp.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bn/bn_exp.c b/src/lib/libcrypto/bn/bn_exp.c index e2e4aa541c..9e4497bb06 100644 --- a/src/lib/libcrypto/bn/bn_exp.c +++ b/src/lib/libcrypto/bn/bn_exp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_exp.c,v 1.40 2023/03/26 18:52:29 tb Exp $ */ | 1 | /* $OpenBSD: bn_exp.c,v 1.41 2023/03/26 19:09:42 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 | * |
@@ -409,9 +409,10 @@ BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, | |||
409 | 409 | ||
410 | BN_CTX_start(ctx); | 410 | BN_CTX_start(ctx); |
411 | 411 | ||
412 | /* Allocate a montgomery context if it was not supplied by the caller. | 412 | /* |
413 | * Allocate a Montgomery context if it was not supplied by the caller. | ||
413 | * If this is not done, things will break in the montgomery part. | 414 | * If this is not done, things will break in the montgomery part. |
414 | */ | 415 | */ |
415 | if (in_mont != NULL) | 416 | if (in_mont != NULL) |
416 | mont = in_mont; | 417 | mont = in_mont; |
417 | else { | 418 | else { |
@@ -1100,7 +1101,7 @@ BN_mod_exp_internal(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m | |||
1100 | * standard algorithm: | 1101 | * standard algorithm: |
1101 | * | 1102 | * |
1102 | * BN_mod_exp_mont 33 .. 40 % [AMD K6-2, Linux, debug configuration] | 1103 | * BN_mod_exp_mont 33 .. 40 % [AMD K6-2, Linux, debug configuration] |
1103 | * 55 .. 77 % [UltraSparc processor, but | 1104 | * 55 .. 77 % [UltraSparc processor, but |
1104 | * debug-solaris-sparcv8-gcc conf.] | 1105 | * debug-solaris-sparcv8-gcc conf.] |
1105 | * | 1106 | * |
1106 | * BN_mod_exp_recp 50 .. 70 % [AMD K6-2, Linux, debug configuration] | 1107 | * BN_mod_exp_recp 50 .. 70 % [AMD K6-2, Linux, debug configuration] |