Method for on-board prime number generation
First Claim
Patent Images
1. Method to generate prime number on board a portable computing device, said method comprising the steps of, each time at least one prime number is requested:
- store, by the portable computing device, a predefined number of pre-calculated prime numbers, said pre-calculated prime numbers being available to be output in case no other calculated prime number is available, wherein the predefined number of the pre-calculated prime numbers is determined depending on calculation resources of the portable computing device and generation duration constraints from an application requesting the generation;
when available, retrieve, by the portable computing device, results from previously performed derivation calculation or, if not, select a start point for derivation;
process, by the portable computing device, derivation calculation to converge towards a prime number;
if a prime number is found, store, by the portable computing device, the prime number and restart derivation calculation from a new start point;
stop, by the portable computing device, continuation of the derivation calculation after one or more iterations of the derivation calculation and after a predetermined amount of time;
store, by the portable computing device, intermediate results to be used a next time a prime number will be requested; and
output, by the portable computing device, a stored prime number different from the intermediate results.
3 Assignments
0 Petitions
Accused Products
Abstract
The present invention relates to a method to generate prime numbers on board a portable device, said method comprising the steps of, each time at least one prime number is requested:
- when available, retrieve results from previously performed derivation calculation or, if not, select a start point for derivation;
- process derivation calculation to converge towards a prime number;
- if a prime number is found, store it and restart derivation calculation from a new start point;
- stop the derivation calculation after a predetermined amount of time;
- store intermediate results to be used a next time a prime number will be requested;
- output a stored prime number.
3 Citations
6 Claims
-
1. Method to generate prime number on board a portable computing device, said method comprising the steps of, each time at least one prime number is requested:
-
store, by the portable computing device, a predefined number of pre-calculated prime numbers, said pre-calculated prime numbers being available to be output in case no other calculated prime number is available, wherein the predefined number of the pre-calculated prime numbers is determined depending on calculation resources of the portable computing device and generation duration constraints from an application requesting the generation; when available, retrieve, by the portable computing device, results from previously performed derivation calculation or, if not, select a start point for derivation; process, by the portable computing device, derivation calculation to converge towards a prime number; if a prime number is found, store, by the portable computing device, the prime number and restart derivation calculation from a new start point; stop, by the portable computing device, continuation of the derivation calculation after one or more iterations of the derivation calculation and after a predetermined amount of time; store, by the portable computing device, intermediate results to be used a next time a prime number will be requested; and output, by the portable computing device, a stored prime number different from the intermediate results. - View Dependent Claims (2, 3, 4)
-
-
5. Device configured to produce cryptographic material based on at least one prime number, said device comprising:
-
a timer; a memory storing a predefined number of pre-calculated prime numbers, said pre-calculated prime numbers being available to be output in case no other calculated prime number is available, wherein the predefined number of the pre-calculated prime numbers is determined depending on calculation resources of the device and generation duration constraints from an application requesting the generation; and computational hardware configured to cause the device to; when available, retrieve results from previously performed derivation calculation or, if not, select a start point for derivation; process derivation calculation to converge towards a prime number; if a prime number is found, store the prime number and restart derivation calculation from a new start point; stop continuation of the derivation calculation after one or more iterations of the derivation calculation and after a predetermined amount of time; store intermediate results to be used a next time a prime number will be requested; and output a stored prime number different from the intermediate results. - View Dependent Claims (6)
-
Specification