@@ -2204,9 +2204,8 @@ \subsection{Required Number of Tests}
2204
2204
the diagonal from $ (512 ,2 ^{-80})$ downwards and to the right to gain a lower probability of getting
2205
2205
a composite declared a pseudoprime for the same amount of work or less.
2206
2206
2207
- If this version of the library has the strong Lucas--Selfridge and/or the Frobenius--Underwood test
2208
- implemented only one or two rounds of the Miller--Rabin test with a random base is necessary for
2209
- numbers larger than or equal to $ 1024 $ bits.
2207
+ If this version of the library has the extra strong Lucas test implemented only one or two rounds
2208
+ of the Miller--Rabin test with a random base is necessary for numbers larger than or equal to $ 1024 $ bits.
2210
2209
2211
2210
This function is meant for RSA. The number of rounds for DSA is $ \lceil -log_2 (p)/2 \rceil $ with $ p$
2212
2211
the probability which is just the half of the absolute value of $ p$ if given as a power of two.
@@ -2234,7 +2233,7 @@ \section{Frobenius (Underwood) Test}
2234
2233
\end {alltt }
2235
2234
Performs the variant of the Frobenius test as described by Paul Underwood. It can be included at
2236
2235
build--time if the preprocessor macro \texttt {LTM\_ USE\_ FROBENIUS\_ TEST } is defined and will be
2237
- used instead of the extra strong Lucas test.
2236
+ used after the extra strong Lucas test.
2238
2237
2239
2238
It returns \texttt {MP\_ ITER } if the number of iterations is exhausted, assumes a composite as the
2240
2239
input and sets \texttt {result } accordingly. This will reduce the set of available pseudoprimes by a
@@ -2255,11 +2254,11 @@ \section{Primality Testing}
2255
2254
mp_err mp_prime_is_prime(const mp_int *a, int t, bool *result)
2256
2255
\end {alltt }
2257
2256
This will perform a trial division followed by two rounds of Miller--Rabin with bases 2 and 3 and a
2258
- Lucas--Selfridge test. The Frobenius--Underwood is available as a compile--time option with the
2257
+ extra strong Lucas test. The Frobenius--Underwood time is available as a compile--time option with the
2259
2258
preprocessor macro \texttt {LTM\_ USE\_ FROBENIUS\_ TEST }. See file \texttt {bn\_ mp\_ prime\_ is\_ prime.c }
2260
2259
for the necessary details. It shall be noted that both functions are much slower than the
2261
2260
Miller--Rabin test and if speed is an essential issue, the macro \texttt {LTM\_ USE\_ ONLY\_ MR }
2262
- switches the Frobenius--Underwood test and the Lucas--Selfridge test off and their code will not
2261
+ switches the Frobenius--Underwood test and the Lucas test off and their code will not
2263
2262
even be compiled into the library.
2264
2263
2265
2264
If $ t$ is set to a positive value $ t$ additional rounds of the Miller--Rabin test with random bases
0 commit comments