diff options
author | tb <> | 2022-07-15 06:19:27 +0000 |
---|---|---|
committer | tb <> | 2022-07-15 06:19:27 +0000 |
commit | 2bc04a5c63b7594d7a7dfc9e582538e7a9267baf (patch) | |
tree | 00e349aa9b44eda52217f1bf9d5b1961cb9fdc89 | |
parent | 5dce31308f8bddcf5f734188d881c33980c60937 (diff) | |
download | openbsd-2bc04a5c63b7594d7a7dfc9e582538e7a9267baf.tar.gz openbsd-2bc04a5c63b7594d7a7dfc9e582538e7a9267baf.tar.bz2 openbsd-2bc04a5c63b7594d7a7dfc9e582538e7a9267baf.zip |
Expand the comment explaining the for loop with bn_lucas_step() a bit.
-rw-r--r-- | src/lib/libcrypto/bn/bn_bpsw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn_bpsw.c b/src/lib/libcrypto/bn/bn_bpsw.c index f189571ebe..ca63410373 100644 --- a/src/lib/libcrypto/bn/bn_bpsw.c +++ b/src/lib/libcrypto/bn/bn_bpsw.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_bpsw.c,v 1.2 2022/07/15 06:14:17 tb Exp $ */ | 1 | /* $OpenBSD: bn_bpsw.c,v 1.3 2022/07/15 06:19:27 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2022 Martin Grenouilloux <martin.grenouilloux@lse.epita.fr> | 3 | * Copyright (c) 2022 Martin Grenouilloux <martin.grenouilloux@lse.epita.fr> |
4 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> |
@@ -192,8 +192,8 @@ bn_strong_lucas_test(int *is_prime, const BIGNUM *n, const BIGNUM *D, | |||
192 | } | 192 | } |
193 | 193 | ||
194 | /* | 194 | /* |
195 | * If any V_{k * 2^r} is zero for 1 <= r < s then n is a strong Lucas | 195 | * Calculate the Lucas terms U_{k * 2^r}, V_{k * 2^r} for 1 <= r < s. |
196 | * pseudoprime. | 196 | * If any V_{k * 2^r} is zero then n is a strong Lucas pseudoprime. |
197 | */ | 197 | */ |
198 | for (r = 1; r < s; r++) { | 198 | for (r = 1; r < s; r++) { |
199 | if (!bn_lucas_step(U, V, 0, D, n, ctx)) | 199 | if (!bn_lucas_step(U, V, 0, D, n, ctx)) |