Skip to main content
QUICK REVIEW

[Paper Review] A faster pseudo-primality test

Jean-Marc Couveignes, Tony Ezome|arXiv (Cornell University)|Apr 7, 2012
Cryptography and Residue ArithmeticComputer Science48 references25 citations
TL;DR

This paper presents a novel probabilistic primality test that achieves the security of λ/2 Miller-Rabin tests using only λ^{1/2+o(1)} Miller-Rabin-style operations by leveraging cyclic extensions of ℤ/nℤ and Galois-theoretic compositeness criteria. The method constructs a Galois pseudo-primality test based on unit group structure in cyclic algebras, significantly reducing computational cost while maintaining strong error bounds, with experimental results showing efficiency gains over standard Miller-Rabin for large inputs.

ABSTRACT

We propose a pseudo-primality test using cyclic extensions of $\mathbb Z/n \mathbb Z$. For every positive integer $k \leq \log n$, this test achieves the security of $k$ Miller-Rabin tests at the cost of $k^{1/2+o(1)}$ Miller-Rabin tests.

Motivation & Objective

  • To develop a faster probabilistic primality test that matches the security of multiple Miller-Rabin tests with reduced computational cost.
  • To leverage Galois theory and cyclic extensions of ℤ/nℤ to construct a compositeness criterion based on algebraic automorphisms.
  • To reduce the number of Miller-Rabin-style operations needed to achieve a given security level, especially for large integers.
  • To provide a Las Vegas algorithm with bounded failure probability and efficient implementation using fast arithmetic and polynomial algebra.

Proposed method

  • The test uses a Galois map defined on the unit group of a cyclic ℤ/nℤ-algebra S, where n is prime if and only if xⁿ = σ(x) for all x ∈ S*.
  • It constructs a cyclic extension S of ℤ/nℤ using a polynomial F(X) of degree dcyc modulo n, with σ generating the Galois group.
  • The algorithm checks that σ(x) = xⁿ for a random unit x ∈ S*, using matrix representations of σ and fast exponentiation in S.
  • It incorporates a Miller-Rabin test in loops to ensure termination with probability ≥1/2 even if n is composite.
  • The method estimates the density of bad witnesses using Galois module structure of the unit group, showing it is bounded by µ^r for r independent tests.
  • The construction includes steps to verify σ fixes ℤ/nℤ, find elements of exact order dkum, and validate automorphism action via matrix computation.

Experimental results

Research questions

  • RQ1Can a pseudo-primality test be designed that achieves the security of λ/2 Miller-Rabin tests using only λ^{1/2+o(1)} such tests?
  • RQ2How can Galois-theoretic structure in cyclic extensions of ℤ/nℤ be used to define a compositeness criterion with low false-positive probability?
  • RQ3What is the computational cost of constructing and verifying such a test compared to repeated Miller-Rabin tests?
  • RQ4Can the algorithm be implemented with Las Vegas guarantees (i.e., always correct when it terminates) while maintaining efficiency?

Key findings

  • The proposed Galois test achieves the same security as λ/2 independent Miller-Rabin tests but requires only λ^{1/2+o(1)} such operations, significantly reducing cost.
  • For large bit-length b, the Galois test becomes more efficient than λ/2 Miller-Rabin tests when λ exceeds approximately 47, as shown in experimental timing comparisons.
  • The density of bad witnesses in the Galois test is bounded by the r-th power of the individual test density, enabling strong error reduction with minimal overhead.
  • The algorithm runs in time (log n)^{2+ε(n)}λ^{1/2+ε(λ)} and returns 'prime' with certainty if n is prime, and with probability ≤2^{-λ} if n is composite.
  • Implementation in Magma shows that the cost ratio between λ/2 Miller-Rabin tests and one equivalent Galois test increases with input size b, favoring the Galois method for large n.
  • The method remains unconditional and does not rely on unproven conjectures, with correctness guaranteed by algebraic number theory and Galois module structure.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.