EP1518172B1

Testing probable prime numbers for cryptographic applications

Abstract

This record has no abstract on file.

EP1518172B1, drawing sheet 1
Sheet 1 of 3

Term

Term ended

Expired 25 April 2023, 3.4 years ago.

  1. Priority
  2. Filed
  3. Granted
  4. Expired
  5. Today

15 claims: 1 independent, 14 dependent

  1. 1
    A method for generating one or more probable prime candidates for use in a cryptographic application, comprising the following sequence of steps:providing a pseudo-random number having a specified first bit size;generating a first candidate from said pseudo-random number such that said first candidate is relatively prime to a set of very small primes;repeatedly testing successive candidates beginning with said first candidate by means of trial division against a list of small primes other than said very small primes until a candidate is found that is relatively prime to all of said small primes in said list, after finding a candidate that is relatively prime to all of said small primes in said list, subjecting said candidate, equal to the first candidate plus a current main increment, to at least one known rigorous probable primality test, and if a candidate is found to be composite according to any one said rigorous test, then continuing testing of successive candidates by trial division against the list of small primes as before;until a candidate is found that passes both small primes trial division and said rigorous test, such candidate being considered to be a probable prime value;and using the probable prime value in said cryptographic application;characterized in that said first candidate being generated from said pseudo-random number by summing with a first increment chosen such that said first candidate is relatively prime to said set of very small primes;and said successive candidates being tested by (i) dividing said list of small primes into distinct groups of primes and forming products of the primes within each group such that said products have a specified maximum second bit size that is smaller than said first bit size by at least a factor of four, and calculating a set of modular reductions of the first candidate, the elements of this set of modular reductions being remainders congruent to the first candidate modulus each one of said products;(ii) maintaining a main increment value that is updated for each successive candidate, each successive update of the main increment value when added to the value of said first candidate providing the next successive candidate that is relatively prime to the set of very small primes;and (iii) for each element of the set of modular reductions incremented by the current update of the main increment value, unless and until a candidate has been found to be composite, testing the incremented element by trial division against each of the primes in the corresponding group of primes used in the corresponding product to determine whether the remainder is zero and if so designating the current candidate as composite.