The present invention relates to the technical field of methods, systems and devices designed to prove the authenticity of an entity and/or the integrity and/or authenticity of a message.
The patent EP 0 311 470 B1, whose inventors are Louis Guillou and Jean-Jacques Quisquater, describes such a method. Hereinafter, reference shall be made to their work by the terms “GQ patent” or “GQ method”. Hereinafter, the expression “GQ2”, or “GQ2 invention” or “GQ2 technology” shall be used to describe the new developments of the GQ technology that are the object of pending applications filed on the same day as the present application by France Telecom, TDF and the firm Mathrizk, and having Louis Guillou and Jean-Jacques Quisquater as their inventors. The characteristic features of these pending applications are recalled whenever necessary in the following description.
According to the GQ method, an entity known as a “trusted authority” assigns an identity to each entity called a “witness” and computes its RSA signature. In a customizing process, the trusted authority gives the witness an identity and signature. Thereafter, the witness declares the following: “Here is my identity; I knew the RSA signature thereof”. The witness, without revealing the fact, proves that he knows the RSA signature of his identity. Through the RSA public identification key distributed by the trusted authority, an entity known as a “controller” ascertains, without obtaining knowledge thereof, that the RSA signature corresponds to the declared identity. The mechanism using the GQ method takes place “without transfer of knowledge”. According to the GQ method, the witness does not know the RSA private key with which the trusted authority signs a large number of identities.
The GQ technology described here above makes use of RSA technology. However, while the RSA technology truly depends on the factorization of the modulus n, this dependence is not an equivalence, indeed far from it, as can be seen in the so-called multiplicative attacks against various standards of digital signatures implementing the RSA technology.
The goal of the GQ2 technology is twofold: firstly to improve the performance characteristics of RSA technology and secondly to avert the problems inherent in RSA technology. Knowledge of the GQ2 private key is equivalent to knowledge of the factorization of the modulus n. Any attack on the triplets GQ2 leads to the factorization of the modulus n: this time there is equivalence. With the GQ2 technology, the work load is reduced for the signing or self-authenticating entity and for the controlling entity. Through a better use of the problem of factorizing in terms of both security and performance, the GQ2 technology averts the drawbacks of RSA technology.
The GQ method implements modulo computations of numbers comprising 512 bits or more. These computations relate to numbers having substantially the same size raised to powers of the order of 216+1. Now, existing microelectronic infrastructures, especially in the field of bank cards, make use of monolithic self-programmable microprocessors without arithmetical coprocessors. The work load related to multiple arithmetical applications involved in methods such as the GQ method leads to computation times which, in certain cases, prove to be disadvantageous for consumers using bank cards to pay for their purchases. It may be recalled here that, in seeking to increase the security of payment cards, the banking authorities have raised a problem that is particularly difficult to resolve. Indeed, two apparently contradictory questions have to be resolved: on the one hand, increasing safety by using increasingly lengthy and distinct keys for each card while, on the other hand, preventing the work load from leading to excessive computation times for the user. This problem becomes especially acute inasmuch as it is also necessary to take account of the existing infrastructure and the existing microprocessor components.
The GQ2 technology provides a solution to this problem while boosting security.
The GQ2 technology implements prime factors having special properties. There are various existing techniques for producing these prime factors. An object of the present invention is a method for the systematic production of such prime factors. It also relates to the application that can be made of these factors especially in the implementation of the GQ2 technology. It must be emphasized right now that these special prime factors and the method used to obtain them can be applied beyond the field of GQ2 technology.
The invention can be applied to a method (GQ2 method) designed to prove the following to a controller entity:
This proof is established by means of all or part of the following parameters or derivatives thereof:
The base numbers gi are such that the two equations (1) and (2):
x2≡gi mod n and x2≡−gi mod n
cannot be resolved in x in a ring of integers modulo n,
and such that the equation (3):
xv≡gi2 mod n
can be resolved in x in the ring of integers modulo n.
The method according to the invention is used to produce the f prime factors p1, p2, . . . pf. in such a way that the equations (1), (2) and (3) are satisfied. The method according to the invention comprises the step of choosing firstly:
The method relates to the case where the public exponent v has the form:
v=2k
where k is a security parameter greater than 1. The security parameter k is also chosen as a prime number. This special value of the exponent v is one of the essential features of GQ2 technology.
Preferably, the m base numbers g1, g2, . . . gm, are chosen at least partially among the first integers. Preferably again, the security parameter k is a small integer, especially below 100. Advantageously, the size of the modulus n is greater than several hundreds of bits. Advantageously again, the f prime factors p1, p2, . . . pf have a size close to the size of the modulus n divided by the number f of factors.
According to a major characteristic of the method according to the invention, the f prime factors p1, p2, . . . pf are not chosen in any unspecified way. Among the f prime factors p1, p2, . . . pf, a certain number of them: e will be chosen to be congruent to 1 modulo 4. This number e of prime factors may be zero. Should e be zero, the modulus n will hereinafter be called a basic modulus. Should e>0, the modulus n will hereinafter be called a combined modulus. The f−e other prime factors are chosen to be congruent to 3 modulo 4. This number f−e of prime factors is at least equal to 2.
To produce the f−e prime factors p1, p2, . . . pf−e congruent to 3 modulo 4, the following steps are implemented:
To choose the factor pi+1, the following procedure is used in distinguishing two cases:
(1) the case where i>m
Should i>m, the factor pi+1 congruent to 3 modulo 4 is chosen.
(2) Case where i≦m
Should i≦m, the Profile (Profilei(gi)) of gi with respect to i first prime factors pi is computed:
if the Profilei(gi) is flat, the factor pi+1 is chosen such that pi+1 is complementary to p1 with respect to gi,
The terms “complementary”, “profile”, “flat profile” have the meanings defined in the description.
To choose the last prime factor pf−e, the following procedure is used in distinguishing three cases:
(1) Case where f−e−1>m
Should f−e−1>m, pf−e is chosen congruent to 3 modulo 4.
(2) Case where f−e−1=m
Should f−e−1=m, Profilef−e−1(gm) is computed with respect to f−e−1 first prime factors from p1 to pf−e−1,
Among the m−1 base numbers from g1 to gm−1 and all their multiplicative combinations, the number hereinafter called g is chosen such that Profilei(g)=Profilei(gi) and then pf−e is chosen such that Profilef−e(g)≠Profilef−e(gm).
(3) Case where f−e−1<m
If f−e−1<m, then pf−e is chosen such that the following two conditions are met:
(3.1) First Condition
Profilef−e−1(gf−e−1) is computed with respect to the f−e−1 first prime factors from p1 to pf−e−1. Two cases are then to be considered. Depending on either of these two cases, the first condition will be different.
If Profilef−e−1(gf−e−1) is flat, pf−e is chosen so that it meets the first condition of being complementary to p1 with respect to gf−e−1 (first condition according to the first case). Else, among the f−e−1 base numbers from g1 to gm−1 and all their multiplicative combinations, the number, hereinafter called g, is chosen such that Profilei(g)=Profilef−e−1(gf−e−1) and then pf−e is chosen so that it meets the condition of being such that Profilef−e(g)≠Profilef−e (gm), (first condition according to the second case).
(3.2) Second Condition
Among all the last base numbers from gf−e to gm, those numbers whose Profile Profilef−e−1(gi) is flat are chosen and then pf−e is chosen so that it meets the condition of being complementary to p1 with respect to each of the base numbers thus selected (second condition).
To produce the e prime factors congruent to 1 modulo 4, each prime factor candidate p is evaluated, from pf−e to pf, in being subjected to the following two successive tests:
(1) First Test
The Legendre symbol is computed for each base number gi, from g1 to gm, with respect to the candidate prime factor p,
(2) Second Test
An integer number t is computed such that p−1 is divisible by 2t, but not by 2t+1, then an integer s is computed such that s=(p−1+2t)/2t+1.
The key (s, p) is applied to each public value Gi to obtain a result r
r≡Gis mod p
If r is equal to gi or −gi, the second test is continued in passing to the following public value Gi+1.
If r is different from gi or −gi, a factor u is computed in applying the following algorithm specified for an index ii ranging from 1 to t−2. The algorithm implements two variables: w initialized by r and jj=2ii assuming values ranging from 2 to 2t−2, as well a number b obtained by application of the key ((p−1)/2t, p) to a non-quadratic residue of CG(p). The algorithm consists in repeating the following sequence as many times as is necessary:
First Case
If +1 is obtained, there is a passage to the following public value Gi+1 and the second test is performed for this public value.
Second Case
If −1 is obtained, jj=2ii is computed and then w is replaced by w.bjj (mod p). Then, the algorithm is continued for the following value having an index ii.
At the end of the algorithm, the value in the variable jj is used to compute an integer u by the relation jj=2t−u and then the expression t−u is computed. Two cases arise:
The candidate p is accepted as a prime factor congruent to 1 modulo 4 if, at the end of the second test, for all the m public values Gi, it has not been rejected.
The present invention also relates to a method (GQ2 method) applying the method that has just been described and making it possible, it may be recalled, to produce f prime factors p1, p2, . . . pf having special properties; The method for the application of the method that has just been described is designed to prove the following to a controller entity,
This proof is established by means of all or part of the following parameters or derivatives of these parameters:
the public modulus n constituted by the product of said prime factors f p1, p2, . . . pf (f being greater than or equal to 2),
Said modulus, said exponent and said values are linked by relations of the following type:
Gi.Qiv≡1. mod n or Gi≡Qiv mod n.
Said exponent v is such that
V=2k
where k is a security parameter greater than 1.
Said public value Gi is the square gi2 of the base number gi smaller than the f prime factors p1, p2, . . . pf. The base number gi is such that the two equations:
x2≡gi mod n and x2≡−gi2 mod n
cannot be resolved in x in the ring of integers modulo n and such that the equation:
xv≡gi2 mod n
can be resolved in x in the ring of the integers modulo n.
Said method implements an entity called a witness in the following steps. Said witness entity has f prime factors pi and/or parameters of the Chinese remainders of the prime factors and/or of the public modulus n and/or the m private values Qi and/or f.m components Qi, j(Qi, j≡Qi mod pj) of the private values Qi and of the public exponent v.
The witness computes commitments R in the ring of integers modulo n. Each commitment is computed:
The witness receives one or more challenges d. Each challenge d comprises m integers di hereinafter called elementary challenges. The witness, on the basis of each challenge d, computes a response D,
either by performing operations of the type:
D≡r.Q1d1.Q2d2 . . . . Qmdm mod n
or by performing operations of the type:
Di≡ri.Qi,1d1.Qi,2d2 . . . . Qi,mdm mod pi
and then by applying the Chinese remainder method.
The method is such that there are as many responses D as there are challenges d as there are commitments R, each group of numbers R, d, D forming a triplet referenced {R, d, D}.
Preferably, in order to implement the pairs of private values Q1, Q2, . . . Qm and public values G1, G2, . . . Gm as just described, the method uses the prime factors p1, p2, . . . pf and/or the parameters of the Chinese remainders, the base numbers g1, g2, . . . gm and/or the public values G1, G2, . . . Gm to compute:
either the private values Q1, Q2, . . . Qm by extracting a k-th square root modulo n of Gi, or by taking the inverse of a k-th square root modulo n of Gi,
More particularly, to compute the f.m private components Qi, j of the private values Q1, Q2, . . . Qm:
The values t and u are computed as indicated here above when pj is congruent to 1 modulo 4. The values t and u are taken to be respectively equal to 1 (t=1) and 0 (u=0) where pj is congruent to 3 modulo 4.
If the value u is zero, we consider all the numbers zz such that:
If u is positive, we can consider all the numbers zz such that zz is equal to the product (mod pj) of za by each of the 2k 2k-th roots of unity, za designating the value of the variable w at the end of the algorithm described here above.
At least one value of the component Qi, j is deduced therefrom. It is equal to zz when the equation Gi≡Qiv mod n is used or else it is equal to the inverse of zz modulo pj of zz when the equation Gi.Qiv≡1.mod n is used.
The goal of GQ technology may be recalled: it is the dynamic authentication of entities and associated messages as well as the digital signature of messages.
The standard version of GQ technology makes use of RSA technology. However, although the RSA technology truly depends on factorizing, this dependence is not an equivalence, far from it, as can be shown from attacks, known as multiplicative attacks, against various digital signature standards implementing RSA technology.
In the context of GQ2 technology, the present part of the invention relates more specifically to the production of sets of GQ2 keys designed to provide for dynamic authentication and digital signature. The GQ2 technology does not use RSA technology. The goal is a twofold one: firstly to improve performance with respect to RSA technology and secondly to prevent problems inherent in RSA technology. The GQ2 private key is the factorization of the modulus n. Any attack on the GQ2 triplets amounts to the factorizing of the modulus n: this time there is equivalence. With the GQ2 technology, the work load is reduced both for the entity that signs or is authenticated and for the one that controls. Through an improved use of the problem of factorization, in terms of both security and performance, the GQ2 technology rivals the RSA technology.
The GQ2 technology uses one or more small integers greater than 1 for example m small integers (m≧1) called base numbers and referenced gi. Then, a public verification key (v, n) is chosen as follows. The public verification exponent v is 2k where k is a small integer greater than 1 (k≧2). The public modulus n is the product of at least two prime factors greater than the base numbers, for example f prime factors (f≧2) referenced by pj, from p1 . . . pf. The f prime factors are chosen so that the public modulus n has the following properties with respect to each of the m base numbers from g1 to gm.
Since the public verification key (v, n) is fixed according to the base numbers from g1 to gm with m≧1, each base number gi determines a pair of values GQ2 comprising a public value Gi and a private value Qi: giving m pairs referenced G1 Q1 to Gm Qm. The public value Gi is the square of the base number gi: giving Gi=gi2. The private value Qi is one of the solutions to the equation (3) or else the inverse (mod n) of such a solution.
Just as the modulus n is broken down into f prime factors, the ring of the integers modulo n are broken down into f Galois fields, from CG(p1) to CG(pf). Here are the projections of the equations (1), (2) and (3) in CG(pj).
x2≡gi(mod pj) (1.a)
x2≡−gi(mod pj) (2.a)
x2
Each private value Qi can be represented uniquely by f private components, one per prime factor: Qi,j≡Qi (mod pj). Each private component Qi,j is a solution to the equation (3.a) or else the inverse (mod pj) of such a solution. After all the possible solutions to each equation (3.a) have been computed, the Chinese remainder technique sets up all the possible values for each private value Qi on the basis of f components of Qi,1 to Qi,f:Qi=Chinese remainders (Qi,1, Qi,2, . . . Qi,f) so as to obtain all the possible solutions to the equation (3).
The following is the Chinese remainder technique: let there be two positive integers that are mutually prime numbers a and b such that 0<a<b, and two components Xa from 0 to a−1 and Xb from 0 to b−1. It is required to determine X=Chinese remainders (Xa, Xb), namely the single number X of 0 to a.b−1 such that Xa≡X (mod a) and Xb≡X (mod b). The following is the Chinese remainder parameter: α≡{b (mod a)}−1 (mod a). The following is the Chinese remainder operation: ε≡Xb (mod a); δ=Xa−ε, if δ is negative, replace δ by δ+a; γ≡α.δ (mod a); X=γ.b+Xb.
When the prime factors are arranged in increasing order, from the smallest p1 to the greater pf, the Chinese remainder parameters can be the following (there are f−1, namely at least one of the prime factors). The first Chinese remainder parameter is α≡{p2 (mod p1)}−1 (mod p1). The second Chinese remainder parameter is β≡{p1.p2 (mod p3)}−1 (mod p3). The i-th Chinese remainder parameter is λ≡{p1.p2 . . . pi
The object of the invention is a method for the random production of any set of GQ2 keys among all the sets possible, namely:
To grasp the problem, and then understand the solution to be given to the problem, namely the invention, we shall first of all analyze the applicability of the principles of GQ2 technology. Let us start by recalling the notion of rank in a Galois field CG(p) in order to study the functions “raised to the square in CG(p)” and “take a square root of a quadratic residue in CG(p)”. Then, we shall analyze the existence and number of solutions in x in CG(p) to the equations (1.a), (2.a) and (3.a).
Rank of the Elements in CG(p)
Let us take a odd prime number p and a positive prime number a smaller than p. Let us thereafter define {X}.
{X}≡{x1=a; puis, pour i≧1, xi+1≡a.xi(mod p)}
Let us calculate the term for the index i+p and let us use Fermat's theorem:
xi+p≡ap.xi≡a.xi≡xi+1(mod p)
Consequently, the period of the sequence {X} is p−1 or a divider of p−1. This period depends on the value of a. By definition, this period is called “the rank of a (mod p)”. It is the index of appearance of unity in the sequence {X}.
xrank(a,p)≡1(mod p)
For example, when (p−1)/2 is an odd prime number p′, the Galois field CG(p) comprises a single element with a rank 1: it is 1, a single element with rank 2. It is −1, p′−1 elements of a rank p′, p′−1 elements of the rank 2.p′, namely of the rank p−1.
The elements of CG(p) whose rank is p−1 are called the primitive elements or again the generators of CG(p). The name is due to the fact that their successive powers in CG(p), namely the terms of the {X} sequence for the indices going from 1 to p−1, form a permutation of all the non-zero elements of CG(p).
According to a primitive element y of CG(p), let us evaluate the rank of the element yi (mod p) as a function of i and p−1. When i is a prime number with p−1, it is p−1. When i divides p−1, it is (p−1)/i. In all cases, it is (p−1)/pgcd(p−1, i).
The Euler function is referenced by φ. By definition, since n is a positive integer, φ(n) is the number of positive integers smaller than n that are prime numbers with n. In the field CG(p), there are therefore φ(p−1) primitive elements.
By way of an illustration, here is the base of the RSA technology. The public modulus n is the product of f prime factors from p1 to pf with f≧2, such that for each prime factor pj, the public exponent v is a prime number with pj−1. The key (v, pj) complies with the rank of the elements of CG(pj): it permutates them. The inverse permutation is obtained with a key (sj, pj) such that pj−1 divides v.sj−1.
Squares and Square Roots in CG(p)
The elements x and p−x have the same square in CG(p). The key (2, p) do not permutate the elements of CG(p) because p−1 is an even value. For each prime number p, let us define an integer t as follows: p−1 is divisible by 2t, but not by 2t+1, namely p is congruent to 2t+1 (mod 2t+1). For example t=1 when p is congruent to 3 (mod 4); t=2 when p is congruent to 5 (mod 8); t=3 when p is congruent to 9 (mod 16); t=4 when p is congruent to 17 (mod 32); and so on and so forth. Each odd prime number is seen in one and only one category: p is seen in the t-th category. In practice, if we consider a fairly large number of successive prime numbers, about one in every two is found in the first category, one in four in the second, one in eight in the third, one in sixteen in the fourth, and so on and so forth. In short, one in 2t on an average is found in the t-th category.
Let us consider the behavior of the function “raise to the square in CG(p)” according to the parity of the rank of the argument.
These figures show respectively;
Let us now look at the way to calculate a solution in x to the equation x2≡a (mod p), it being known that a is a quadratic residue of CG(p), namely how “to take a square root in CG(p)”. There are of course several ways of obtaining the same result: the reader can advantageously consult Henri Cohen, “A Course in Computational Algebraic Number Theory”, published, Springer, Berlin, 1993, pp. 31–36 as well as “Graduate Texts in Mathematics”, vol. 138 (GTM 138).
Let us calculate an integer s=(p−1+2t)/2t+1 to establish a key (s, p). Let: ((p+1)/4, p) when p is congruent to 3 (mod 4), ((p+3)8, p) when p is congruent to 5 ((mod 8)), ((p+7)/16, p) when p is congruent to 9 (mod 16), ((p+15)/32, p) when p is congruent to 17 (mod 32), and so and so forth.
In general, the key (s, p) converts any quadratic residue a into a first approximation of a solution which shall be called r. The following are two key points followed by a rough sketch of a method for the step-by-step improvement of the approximation up to a square root of a.
The following algorithm makes successive approximations to reach a square root of a from the integers r and b defined here above; it uses two integer variables: w initialized by r to represent the successive approximations and jj assuming values among the powers of 2, from 2 to 2t−2.
For i ranging from 1 to t−2, repeat the following sequence:
Compute w2/a (mod p), then raise the result to the power 2t−i−1 (mod p): +1 or −1 should be obtained. When −1 is obtained, compute jj=2i, then replace w by w.bjj (mod p). When +1 is obtained, do nothing.
At the end of the computation, w and p−w are two square roots of a in CG(p). Furthermore, we learn that the rank of a in CG(p) is divisible by 2t/jj but not by 2t+1/jj. The relevance of this observation will be seen further below.
Analysis of the Principles of GQ2 Technology in CG(p)
Let us take two integers g and k greater than 1 and a prime number p greater than g. Let us analyze the existence and number of solutions in x in CG(p) in the equations (1.a), (2.a) and (3.a).
In the Galois field CG(p), let us distinguish different cases depending on the value of t, namely, according to the power of two which divides p−1. It may be recalled that p−1 is divisible by 2t, but not by 2t+1, namely that p is congruent to 2t+1 (mod 2t+1). The previous analysis gives us a fairly precise idea of the problem raised as well as a rough solution.
When t=1, p is congruent to 3 (mod 4) as shown in
When t=2, p is congruent to 5 ((mod 8)) as shown in
p≡5(mod 8); consequently (2|p)=−1
(mod p); hence b2≡−1(mod p)
When t=3, p is congruent to 9 (mod 16) as shown in
When t=4, p is congruent to 17 (mod 32) as shown in
And so on and so forth so that the case where p is congruent to 1 (mod 4) can be summarized as follows.
When p is congruent to 1 (mod 4), let us consider the Legendre symbol of g with respect to p. When the symbol is equal to −1, g and −g are two non-quadratic residues of CG(p): the three equations (1.a), (2.a) and (3.a) have no solution in x in CG(p). When the symbol is equal to +1, g and −g are two quadratic residues of CG(p); each equation (1.a) and (2.a) has two solutions in x in CG(p). Let us define the integer u: the rank of g2 in CG(p) is divisible by 2u, but not by 2u+1. The value of u is among the t−1 possible values, from 0 to t−2. The existence and the number of solutions in x in CG(p) to the equation (3.a) depend on the values of k, t and u. When u is positive and k is greater than t−u, the equation (3.a) does not have a solution in x in CG(p). When u is zero and k is greater than t, the equation (3.a) has 2t solutions in x in CG(p). When k is smaller than or equal to t−u, the equation (3.a) has 2k solutions in x in CG(p).
Applicability of the GQ2 Principles in the Rings of Integers Modulo
In order that the equation (1) and (2) respectively may have no solution in x in the ring of the integers modulo n, it is necessary and sufficient that, for at least one of the prime factors p, from p1 to pf, the equation (1.a) and (2.a) respectively will have no solution in x in CG(p).
In order that the equation (3) may have solutions in x in the ring of the integers modulo n, it is necessary and sufficient that, for each of the prime factors p, from p1 to pf, the equation (3.a) should have solutions in x in CG(p).
The equation (3) prohibits any prime factor p congruent with 1 (mod 4) as soon as, for one of the base numbers g, from g1 to gm: either the Legendre symbol of g with respect to p is equal to −1; or else the Legendre symbol of g with respect to p is equal to +1 with the condition: u positive and greater than t−k. In order that a prime factor p congruent to 1 (mod 4) may be possible, it is necessary to fulfill one of the following two conditions for each of the base numbers g, from g1 to gm, according to the two integers t and u defined here above. Either the rank of G=g2 is an odd-parity rank in CG(p), namely u=0, whatever the value of k. Or else the rank of G=g2 is an even-parity rank value in CG(p), namely u>0 and it meets the condition: u+k≦t.
A product of prime factors congruent to 1 (mod 4) cannot fulfill all the principles of GQ2 technology. Each GQ2 modulus must have at least two prime factors congruent to 3 (mod 4) such that, for each base number g, the Legendre symbol of g with respect to on of these factors differs from the Legendre symbol of g with respect to the other. When all the prime factors are congruent to 3 (mod 4), it will be said that the GQ2 modulus is basic. When, in addition to at least two prime factors congruent to 3 (mod 4), the modulus includes one or more prime factors congruent to 1 (mod 4), it will be said that the modulus GQ2 is combined.
Systematic Construction of Moduli GQ2
At the outset, it is necessary to fix the total constraints to be dictated on the modulus n: a size expressed in bits (for example, 512 or 1024 bits) as well as a number of most significant successive bits at 1 (at least one of course typically 16 or 32 bits), a numberf of prime factors and a number e (possibly zero) of prime factors having to be congruent to 1 (mod 4); the other prime factors, namely f−e factors, at least two, must be congruent to 3 (mod 4). The modulus n will be the product off prime factors of similar sizes. When e=0, a basic modulus GQ2 is obtained; when e>0, a combined modulus GQ2 is obtained. A basic modulus is the product of prime factors all congruent to 3 (mod 4). A combined modulus GQ2 appears therefore as the product of a basic modulus GQ2 multiplied by one or more other prime factors congruent to 1 (mod 4). First of all prime factors congruent to 3 (mod 4) are produced. Then, if e>0, prime factors congruent to 1 (mod 4) are produced.
For the efficacy of the construction of GQ2 moduli, it is definitely better to select each candidate before seeking to find out if it is a prime value.
Referenced by g1 g2 . . . , the base numbers are found typically among the first prime numbers: 2, 3, 5, 7, . . . If there are no indications to the contrary, the m base numbers are the m first prime numbers: g1=2, g2=3, g3=5, g4=7, . . . However, the following points must be noted: 2 must be avoided if a factor congruent with 5 (mod 8) is anticipated; 3 must be avoided if the public key (3, n) has to be used as the RSA public verification key.
Choice of f−e Prime Factors Congruent with 3 (mod 4)
On the basis of the second factor, the program requests and uses one base number per factor. For the choice of the last factor congruent with 3 (mod 4), the program finds out if there are other base numbers, namely if m is equal to or greater than f−e and then, if this is the case, requests and takes account of the last base numbers, from gf−e to gm. To formalize the choice of the prime factors congruent with 3 (mod 4), we have introduced a notion of the profile. The profile characterizes an integer g with respect to a set of prime factors greater than g and congruent with 3 (mod 4).
Referenced by Profilef(g), the profile of an integer g with respect to f prime factors p1 p2 . . . pf is a sequence of f bits, one bit per prime factor. The first bit is equal to 1; each following bit is equal to 1 or 0 depending on whether the next factor is equivalent or complementary to p1 with respect to g.
When the profiles of two base numbers g1 and g2 are different, which implies at least three prime factors congruent to 3 (mod 4), the knowledge of the two private values Q1 and Q2 induces knowledge of two different decompositions of the modulus n. When the base numbers are small prime numbers, the program ensures that the profiles of 2f−e−1−1 multiplicative combinations of f−e−1 basic prime numbers are all different: they take all the possible values. The notion of profile does not extend to the prime factors congruent to 1 (mod 4).
First prime factor p1 congruent to 3 (mod 4): each candidate must be congruent to 3 (mod 4) without any other particular constraint.
Second prime factor p2 congruent to 3 (mod 4) with the first base number g1 being taken into account: each candidate must be complementary to p, with respect to g1.
Third prime factor p3 congruent to 3 (mod 4) with the second base number g2 being taken into account: according to the profile of g2 with respect to two first prime factors p1 and p2, two cases occur. When Profile2(g2) is flat, each candidate must be complementary to p, with respect to g2. Else, we have Profile2(g1)=Profile2(g2); each candidate must then ensure that Profile3(g1)≠Profile3(g2).
Choice of i-th prime factor pi+1 congruent to 3 (mod 4) with the base number gi being taken into account: according to the profile of gi with respect to i first prime factors p1, p2, . . . . pi, two cases occur. When Profilei(gi) is flat, each candidate must be complementary to p1 with respect to gi. Else, among the i−1 base numbers g1, g2, . . . gi−1 and all their multiplicative combinations g1.g2, . . . , g1.g2 . . . . gi−1, namely 2i−1−1 integers in all, there is one and only one integer g such that Profilei(gi)=Profilei(g); each candidate must then ensure that Profilei+1(gi)≠Profilei+1(g).
Last prime factor pf−e congruent to 3 (mod 4) with the base number gf−e−1 and the other base numbers from gf−e to gm being taken into account: the constraints due to the base number gf−e−1 are taken into account as above. Furthermore, when m is equal to or greater than f−e, each candidate must provide for a non-flat profile for the last base numbers, from gf−e, to gm, with respect to the f−e prime factors. Each candidate must be complementary to p1 with respect to all the values of gi for which Profilef−e−1(gi) is flat.
In short, the prime factors congruent to 3 (mod 4) are chosen as a function of one another.
For i ranging from 0 to f−e−1, to choose the i+1-th prime factor congruent to 3 (mod 4), the candidate pi+1 must successfully pass the following examination:
The candidate is accepted because it has successfully undergone the appropriate tests.
Choice of e Prime Factors Congruent to 1 (mod 4)
To be acceptable, each candidate p congruent to 1 (mod 4) must fulfill the following conditions with respect to each base number from g1 to gm.
Compute w2/Gi (mod pj) then raise the result to the power 2t−i−1 (mod pj): we must obtain +1 or −1. When −1 is obtained, compute jj=2i, then replace w by w.bjj (mod pj). When +1 is obtained, do nothing.
At the end of the computation, the variable w has the value gi or −gi. Furthermore, we know that the rank of Gi in CG(pj) is divisible by 2t/jj but not by 2t+1/jj, namely that jj determines the value of u by jj=2t−u. When v is greater than jj, namely k>t−u, reject the candidate and go to another candidate. When v is smaller than or equal to jj, namely k≦t−u, continue the evaluation of the candidate.
When the f prime factors have been produced, the public modulus n is the product of the f prime factors p1, p2, . . . pf. The unsigned integer n can be represented by a binary sequence; this sequence complies with the constraints imposed at the beginning of a program for the size in bits and for the number of successive most significant bits at 1. The choice of the prime factors provides for the following properties of the modulus n with respect to each of the m base numbers g1, g2, . . . gm. Furthermore, the equations (1) and (2) have no solution in x in the ring of the integers modulo n. Secondly, the equation (3) has solutions in x in the ring of the integers modulo n.
In short, the prime factors congruent to 1 (mod 4) are chosen independently of one another. While the factors congruent to 3 (mod 4) gradually take account of the base numbers, each prime factor congruent to 1 (mod 4) must take account of all the constraints dictated by each of the base numbers. Each prime factor congruent with 1 (mod 4), namely p, from pf−e to pf, should have successfully undergone the following examination in two steps.
1) The step (1) is executed successively for each of the m base numbers from g1 to gm.
The Legendre symbol of the current base number g with respect to the candidate p is computed. One and only of the following two cases arises: if the symbol is equal to −1, the candidate is rejected. Else (the symbol is equal to +1), the examination is continued in passing to the base number g following the step (1).
When the candidate is acceptable for all the m base numbers, the operation passes to the step (2).
2) The step (2) is executed successively for each of the m public values of G1 to Gm.
An integer t is computed such that p−1 is divisible by 2t but not by 2t+1, then an integer s=(p−1+2t)/2t+1, so as to set up a key (s, p). The key (s, p) is applied to the current public value G=g2 to obtain a result r, namely: r≡Gs (mod p). Depending on the result, one and only one of the following states arises:
When the candidate is acceptable for all the m public values, it is accepted as a prime factor congruent with 1 (mod 4).
Computation of the Associated Values
To obtain the private components, let us first calculate all the solutions to the equation (3.a) in the two simplest and most current cases before taking up the general case.
For each prime factor pj congruent to 3 (mod 4), the key ((pj+1)4, pj) gives the quadratic square root of any quadratic residue. From this, a method is deduced for computing a solution to the equation (3.a):
sj≡((pj+1)/4)k(mod(pj−1)/2); then, Qi,j≡Gisj(mod pj)
or else rather the inverse (mod pj) of such a solution.
sj≡(pj−1)/2−((pj+1)/4)k(mod(pj−1)/2); then, Qi,j≡Gisj(mod pj)
In CG(pj), there are then two and only two square roots of unity: +1 and −1; there are therefore two solutions in x to the equation (3.a): the two numbers Qi,j and pj−Qi,j are the same square Gi(mod pj).
For each prime factor pj congruent to 5 (mod 8), the key ((pj+1)/4, pj) gives the odd-parity ranking square root of any odd-parity ranking element. From this, a solution to the equation (3.a) is deduced:
sj≡((pj+3)/8)k(mod(pj−1)/4); then, Qi,j≡Gisj(mod pj)
or else rather the inverse (mod pj) of such a solution.
sj≡(pj−1)/4−((pj+3)/8)k(mod(pj−1)/4); then Qi,j≡Gisj(mod pj)
In CG(pj), there are then four and only four fourth roots of unity; there are therefore four solutions in x to the equation (3.a). Let us note that 2(pj−1)/4 (mod pj) is a square root of −1 because the Legendre symbol of 2 with respect to p congruent to 5 (mod 8) is equal to −1. If Qi,j is a solution, then pj−Qi,j is another solution, as well as the product (mod pj) of Qi,j by a square root of −1.
For a prime factor pj congruent to 2t+1 (mod 2t+1), the key ((pj−1+2t)/2t+1, pj) gives the odd parity square root of any odd-parity ranking element. It is therefore possible to compute a solution to the equation (3.a).
In short, to compute a component for the prime factor p and the base number g, with k, t and u being known, the following procedure is used:
Thus, as and when t increases, the program gets complicated for increasingly rare cases. Indeed, the prime numbers are distributed on an average as follows: t=1 for one in two, t=2 for one in four, t=3 for one in eight and so on and so forth. Furthermore, the constraints due to m base numbers make the candidacies increasingly unacceptable. Whatever the case may be, the combined moduli definitively form part of GQ2 technology; the type of GQ2 modulus in no way affects the dynamic authentication and digital signature protocols.
Here is a first set of keys GQ2 with k=6, giving v=64, m=3, giving three base: g1=3, g2=5 et g3=7, and f=3, namely a modulus with three prime factors: two congruent to 3 (mod 4) and one to 5 (mod 8). It must be noted that g=2 is incompatible with a prime factor congruent to 5 (mod 8).
p1=03CD2F4F21E0EAD60266D5CFCEBB6954683493E2E833
(2|p1)=−1; (3|p1)=+1; (5|p1)=−1; (7|p1)=+1
p2=0583B097E8D8D777BAB3874F2E76659BB614F985EC1B
(2|p1)=−1; (3|p1)=−1; (5|p1)=+1; (7|p1)=−1
p3=0C363CD93D6B3FEC78EE13D7BE9D84354B8FDD6DA1FD
(2|p1)=−1; (3|p1)=+1; (5|p1)=+1; (7|p1)=+1
n=p1.p2.p3=FFFF81CEA149DCF2F72EB449C5724742FE2A3630D9 02CC00EAFEE1B957F3BDC49BE9CBD4D94467B72AF28CFBB26144CDF4BBDBA3C97578E29CC9BBEE8FB6DDDD
Q1,1=0279C60D216696CD6F7526E23512DAE090CFF879FDDE
Q2,1=7C977FC38F8413A284E9CE4EDEF4AEF35BF7793B89
Q3,1=6FB3B9C05A03D7CADA9A3425571EF5ECC54D7A7B6F
Q1,2=0388EC6AA1E87613D832E2B80E5AE8C1DF2E74BFF502
Q2,2=04792CE70284D16E9A158C688A7B3FEAF9C40056469E
Q3.2=FDC4A8E53E185A4BA793E93BEE5C636DA731BDCA4E
Q1,3=07BC1AB048A2EAFDAB59BD40CCF2F657AD8A6B573BDE
Q2,3=0AE8551E116A3AC089566DFDB3AE003CF174FC4E4877
Q3,3=01682D490041913A4EA5B80D16B685E4A6DD88070501
Q1=D7E1CAF28192CED6549FF457708D50A7481572DD5F2C335D8C69E22521B510B64454FB7A19AEC8D06985558E764C6991B05FC2A C74D9743435AB4D7CF0FF6557
Q2=CB1ED6B1DD649B89B9638DC33876C98AC7AF689E9D1359E4DB17563B9B3DC582D5271949F3DBA5A70C108F561A274405A5CB 8 82288273ADE67353A5BC316C093
Q3=09AA6F4930E51A70CCDFA77442B10770DD1CD77490E3398A AD9DC50249C34312915E55917A1ED4D83AA3D607E3EB5C8B197 697238537FE7A0195C5E8373EB74D
The following are other possible values for the components related to the p3 which is congruent to 5 (mod 8).
The following is a square root of −1 in CG(p3): c=2(p3−1)/4 (mod p3)=0C3000933A854E4CB309213F12CAD59FA7AD775AAC37
Q′1,3=c.Q1,3 (mod p3)=050616671372B87DEC9AEEAC68A3948E9562F714D76C
Q′2,3=c.Q2,3 (mod p3)=06F308B529C9CE8D037D01002E7C838439DACC9F8AA
Q′3,3=c.Q3,3 (mod p3)=015BE9F4B92F1950A69766069F788E45439497463D58
Giving:
Q′1=676DF1BA369FF306F4A1001602BCE5A008DB82882E87C148D0D820A711121961C9376CB45C355945C5F2A9E5AFAAD7861886284A 9B319F9E4665211252D74580
Q′2=CAEC4F41752A228CF9B23B16B3921E47C059B9E0C68634C2C 64D6003156F30EF1BC02ADA25581C8FDE76AA 14AB5CC60A2DE1C 565560B27E8AA0E6F4BCA7FE966
Q′3=2ACDF5161FE53B68CC7C18B6AFE495815B46599F44C51A6A1A4E858B470E8E5C7D2200EF135239AF0B7230388A6A5BDD8EE15B 0D094FC2BFA890BFDA669D9735
The following is a second set of keys GQ2, with k=9, that is v=512, m=2, that is two base numbers: g1=2 and g2=3, and f=3, giving a modulus with three prime factors congruent to 3 (mod 4).
p1=03852103E40CD4F06FA7BAA9CC8D5BCE96E3984570CB
(2|p1)=−1; (3|p1)=−1; and we get: (6|p1)=+1.
p2=062AC9EC42AA3E688DC2BC871C8315CB939089B61DD7
(2|p2)=+1; (3|p2)=−1; and we get: (6|p2)=−1.
p3=0BCADEC219F1DFBB8AB5FE808A0FFCB53458284ED8E3
(2|p3)=−1; (3|p3)=+1; and we get: (6|p3)=−1.
n=p1.p2.p3=FFF5401ECD9E537F167A80C0A9111986F7A8EBA4D 6698AD68FF670DE5D9D77DFF00716DC7539F7CBBCF969E73A0C49 761B276A8E6B6977A21D51669D039F1D7
Q1,1=0260BC7243C22450D566B5C6EF74AA29F2B927AF68E1
Q2,1=0326C12FC7991ECDC9BB8D7C1C4501BE1BAE9485300E
Q1,2=02D0B4CC95A2DD435D0E22BFBB29C59418306F6CD00A
Q2,2=045ECB881387582E7C556887784D2671CA118E22FCF2
Q1,3=B0C2B1F808D24F6376E3A534EB555EF54E6AEF5982
Q2,3=0AB9F81DF462F58A52D937E6D81F48FFA4A87A9935AB
Q1=27F7B9FC82C19ACAE47F3FE9560C3536A7E90F8C3C51E13C 35F32FD8C6823DF753685DD63555D2146FCDB9B28DA367327DD6EDDA092D0CF108D0AB708405DA46
Q2=230D0B9595E5AD388F1F447A69918905EBFB05910582E5BA64 9C94B0B2661E49DF3C9B42FEF1F37A7909B1C2DD54113ACF87C6
The present application has described a method for the production of sets of GQ2 keys, namely moduli n and pairs of public and private values G and Q respectively, in which the exponent v is equal to 2k. These sets of keys are used to implement a method designed to prove the authenticity of an entity and/or the integrity and/or the authenticity of a message as has been described.
In the pending applications filed on the same day by France Télécom, TDF and the firm Math RiZK, and whose inventors are Louis Guillou and Jean-Jacques Quisquater, the characteristic features of the methods, systems and devices designed to prove the authenticity of an entity and/or the integrity and/or the authenticity of a message have been claimed. These two applications are incorporated herein by reference.
Number | Date | Country | Kind |
---|---|---|---|
99 01065 | Jan 1999 | FR | national |
99 03770 | Mar 1999 | FR | national |
99 12465 | Oct 1999 | FR | national |
99 12467 | Oct 1999 | FR | national |
99 12468 | Oct 1999 | FR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/FR00/00189 | 1/27/2000 | WO | 00 | 9/14/2001 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO00/46947 | 8/10/2000 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5140634 | Guillou et al. | Aug 1992 | A |
5218637 | Angebaud et al. | Jun 1993 | A |
5604805 | Brands | Feb 1997 | A |
6389136 | Young et al. | May 2002 | B1 |
6697946 | Miyaji | Feb 2004 | B1 |
Number | Date | Country |
---|---|---|
311 470 | Apr 1989 | EP |
381 523 | Aug 1990 | EP |
792 044 | Aug 1997 | EP |
792044 | Aug 1997 | EP |
WO 8911706 | Nov 1989 | WO |
WO 9633567 | Oct 1996 | WO |