浏览代码

update "Primality Testing"

Steffen Jaeckel 8 年之前
父节点
当前提交
728bc4a6a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/crypt.tex

+ 1 - 1
doc/crypt.tex

@@ -5557,7 +5557,7 @@ int base64_decode(const unsigned char *in,
 \mysection{Primality Testing}
 \mysection{Primality Testing}
 \index{Primality Testing}
 \index{Primality Testing}
 The library includes primality testing and random prime functions as well.  The primality tester will perform the test in
 The library includes primality testing and random prime functions as well.  The primality tester will perform the test in
-two phases.  First it will perform trial division by the first few primes.  Second it will perform eight rounds of the
+two phases.  First it will perform trial division by the first few primes.  Second it will perform \textit{LTC\_MILLER\_RABIN\_REPS} (pre-defined to $35$) rounds of the
 Rabin-Miller primality testing algorithm.  If the candidate passes both phases it is declared prime otherwise it is declared
 Rabin-Miller primality testing algorithm.  If the candidate passes both phases it is declared prime otherwise it is declared
 composite.  No prime number will fail the two phases but composites can.  Each round of the Rabin-Miller algorithm reduces
 composite.  No prime number will fail the two phases but composites can.  Each round of the Rabin-Miller algorithm reduces
 the probability of a pseudo-prime by $1 \over 4$ therefore after sixteen rounds the probability is no more than
 the probability of a pseudo-prime by $1 \over 4$ therefore after sixteen rounds the probability is no more than