@@ -2204,9 +2204,8 @@ \subsection{Required Number of Tests}
22042204the diagonal from $ (512 ,2 ^{-80})$ downwards and to the right to gain a lower probability of getting
22052205a composite declared a pseudoprime for the same amount of work or less.
22062206
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.
22102209
22112210This function is meant for RSA. The number of rounds for DSA is $ \lceil -log_2 (p)/2 \rceil $ with $ p$
22122211the 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}
22342233\end {alltt }
22352234Performs the variant of the Frobenius test as described by Paul Underwood. It can be included at
22362235build--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.
22382237
22392238It returns \texttt {MP\_ ITER } if the number of iterations is exhausted, assumes a composite as the
22402239input and sets \texttt {result } accordingly. This will reduce the set of available pseudoprimes by a
@@ -2255,11 +2254,11 @@ \section{Primality Testing}
22552254mp_err mp_prime_is_prime(const mp_int *a, int t, bool *result)
22562255\end {alltt }
22572256This 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
22592258preprocessor macro \texttt {LTM\_ USE\_ FROBENIUS\_ TEST }. See file \texttt {bn\_ mp\_ prime\_ is\_ prime.c }
22602259for the necessary details. It shall be noted that both functions are much slower than the
22612260Miller--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
22632262even be compiled into the library.
22642263
22652264If $ t$ is set to a positive value $ t$ additional rounds of the Miller--Rabin test with random bases
0 commit comments