Improved variants of the Fiat-Shamir identification and signature scheme

Abstract: A method of proving the identify of an entity comprising the steps of establishing a public key for the entity consisting of a modulus n which is the product of at least two prime numbers, and a sequence of k numbers v₁,...,v k (10); computing a private key (12) for the entity consisting of k numbers s₁,...,s k satifying s j d v j =1 (mod n) for all 1≦j≦k, where d is a universally known constant larger than 1; transmitting from the entity to a verifier (20) x=r d (mod n) (16,18) where r is a random number in the range 0<r<n; transmitting from the verifier (20) to the entity a sequence of k random numbers e₁,...,e k in the range 0<e j <d (22,24); transmitting from the entity to the verifier (20) the value (mod n) (32); and verifying the identity of the entity by checking that (mod n) (54).

Description: The present invention relates to a method and apparatus for implementing an identification and signature scheme and, more particularly, relates to an improvement to the method and apparatus disclosed and claimed in, and is a continuation-in-part of, U.S. Patent Application Serial No. 06/883,247 filed on July 9, 1986, in the names of Adi Shamir and Amos Fiat, corresponding to EP-A-252 499. In EP-A-3 11 470, published after the filing date of the present invention, a method to identify and verify signatures of messages is disclosed. An identity string I is used to obtain one value of J and B. These values as value p which is an exponent of a random function r are public values. The value p is the least common multiple of numbers (a-1) and (b-1) whereby a and b are prime numbers that are multiplied to give modulus n. In the afore-mentioned parent application (to which we refer henceforth as the original Fiat-Shamir Scheme), a method and apparatus are disclosed and claimed which enable an entity to generate proof of identity and signatures of messages that everyone can verify but no one can forge. Compared to other schemes of this type (such as the RSA), the Fiat-Shamir Scheme is faster by one to two orders of magnitude. In the present application two improved variants of the Fiat-Shamir Scheme are described which are even faster. The invention according to claims 1,16,33,48 is related to a first variant which uses small public values to optimise the verification procedure. The other variant uses particular secret values to optimise the generation procedure. To keep these variants secure and to fully exploit their improved performance, some of the details of the original method and apparatus disclosed and claimed in the afore-mentioned parent patent application have been modified. In particular, the public key of an entity is no longer computed as a function of its identity I, the quadratic expressions are generalised to d-th powers, and the execution of the protocol is usually not iterated, but may be. Other and further objects and advantages of the present invention will be evident from the following detailed description taken in conjunction with the drawings. Figure 1 is a schematic showing the novel method and apparatus for providing identity and; Figure 2 is a schematic showing the novel method and apparatus for generating and verifying a signature to a message. Referring now to the drawings, the basic structure of the new and improved variants of the method and apparatus of the afore-mentioned patent application is illustrated in Figure 1 for proof of identity. As shown, an entity either selects or is given a public key, see block 10, consisting of a modulus n which is a product of at least two prime numbers, and a sequence of k small numbers v₁,...,v k . This public key can be stored in a public key directory, or sent to the verifier along with a trusted center's signature on it to establish its authenticity. The entity computes a corresponding private key, block 12, consisting of numbers s₁,...s k satisfying s j d v j =1 (mod n) for all 1≦j≦k, where d is some universally known constant larger than 1. Accordingly, the identification technique proceeds as follows. To prove his, hers or its identity, the entity chooses a random r in the range 0<r<n, block 14, and sends x=r d (mod n) to the verifier, block 16 and line 18, where it is received by the verifier, block 20. Upon receipt of x, line 22, the verifier chooses k random numbers e₁,...,e k in the range 0≦e j <d, block 24, and sends them to the prover, line 26. The prover, in response to receipt of e₁,...,e k , block 28, computes and sends to the verifier, block 32, line 34. Line 36 sends the s j values from block 12 to block 32. The verifier upon receipt of y value in block 38, via line 40, computes in block 42 the value This value is sent via line 44 to block 46 where it is compared with the value x, via line 48. The result is passed by line 50 to block 52 where the judgment is made. The verifier accepts the proof of identity in block 54 if and rejects the proof of identity if this equality does not hold. The signature technique is schematically portrayed in Figure 2. As shown, the identification scheme of Figure 1 is turned into a signature scheme by using some publicly known cryptographically strong pseudo random function f which maps its inputs into a sequence of k numbers e =e₁,...,e k in the range O≦e j <d, block 70. To generate a signature for message m, first, a random r in the range O<r<n is chosen. Then, e =f(r d (mod n), m) is computed in block 72. Next is computed in block 74. The signature of m consists of e and y. These values are either stored or sent to the verifier where they are received in block 76. To verify the stored or transmitted signature, the verifier computes block 78. These values are compared with e , block 80. If equal, block 82, the signature is accepted as genuine and, if not, the signature is rejected as a forgery. The best known attack on these identification and signature techniques has a probability of success of d -k per attempt. To make the interactive identification protocol secure, it usually suffices to choose d k larger than or equal to 2²⁰ since a cheater has only one chance to forge a proof of identity. To make the non-interactive signature technique secure against repeated attempts to forge a signature, d k should be at least 2⁶⁴. This can be achieved either by using sufficiently large values of d and k, or by iterating the executions of these schemes t times and making sure that d kt ≧2⁶⁴. In most applications, the first option is recommended since it minimizes both the number of modular multiplications and the number of communicated bits. In the first variant, according to the present invention, small v j values are used. In the preferred embodiment of this variant, d is 2 or 3, and all the entities choose the numbers v j as the first k primes v₁=2, v₂=3, v₃=5, etc. Since the v j are universal, only the modulus n has to be specified in the public-key directory. In a typical implementation of this variant with k=64 numbers and 512 bit modulus, the size of each entry in the public-key directory is 64 bytes, and the size of each signature is 72 bytes, which are comparable with those of the RSA signature scheme. The size of the private key is about 4 kilobytes, but since each entity has to store only one such file, it can fit into almost any microcomputer based device (with the possible exception of a smart card). With optimized implementations, it is possible to generate proofs of identity in less than 10 modular multiplications and to generate signatures in less than 30 modular multiplications, which is the same as in the original Fiat-Shamir scheme. However, since multiplications by the small v j values (most of which fit in a single byte) have negligible complexity, the verification of identities and signatures in this variant requires only 1 or 2 full-size modular multiplications. This is an order of magnitude faster than in the original Fiat-Shamir scheme, and is expected to take only tens of milliseconds on a standard microprocessor and less than a millisecond on a mainframe computer. The high efficiency of verification can be crucial when a central computer has to verify many access requests or signed documents generated in thousands of terminals, or when a remotely controlled robot has to verify in real time a stream of signed instructions generated by a more powerful central computer. The choice of exponent d depends on the relative importance of efficiency and convenience. When d=2, the scheme requires the fewest number of modular multiplications, but the square roots of the v j do not always exist. It is thus necessary to modify the scheme in one of the following ways. 1. Each entity can choose its own set of small v j values, making sure that all of them are quadratic residues modulo the entity's n. These v j 's should be published in full in the public-key directory. 2. Use a longer list of standard v j values and each entity can choose a subset of k values which are quadratic residues modulo its own n (when n is the product of two primes, the universal list should contain about 4k numbers). The entity's chosen subset should be specified in the public-key directory or sent as part of the signature. 3. Each entity is allowed to modify the standard v j which are quadratic non-residues. A particularly simple way to achieve this is to pick a modulus n=pg where p=3 (mod 8) and g=7 (mod 8), since then exactly one of v j , -v j , 2v j , -2v j is a quadratic residue mod n for any v j . The appropriate variant of each v j can be specified in the public-key directory, sent as part of the signature, or deduced by the verifier himself during the verification of given signatures. Alternatively, the entities can use d=3 and avoid all these complications. If the totient function of n is not divisible by 3, then any v j value has a cubic root mod n. However, this choice of d requires an additional modular multiplication during the generation and the verification of signatures. The choice of the v j as the first k primes in the preferred embodiment is based on the fact that large values can make the scheme less efficient, and multiplicatively related values can make the scheme less secure. However, the v j can be chosen as any other sequence of k numbers. As described in the parent Fiat-Shamir application, there are many possible tradeoffs between the size of the keys, the number of communicated bits, and the number of modular multiplications. All the optimization ideas described in the parent patent application are equally applicable to this variant. In a second variant, particular s j values are used. In this variant, the entities can choose their own moduli n, or can use a universal modulus n published by a trusted center (the first option is more secure, while the second option reduces the size of the public key). Each entity chooses a sequence of particular secret numbers s₁,...,s k , and computes the corresponding public numbers v₁,...,v k as (note that this computation can be carried out even when the factorization of n is unknown). Each s j should be at least 64 bits long to protect it from exhaustive search attacks, and the exponent d should be large enough to guarantee that s j d >n (e.g., when |n| =512 and |s j | =64, d should be at least 16 to guarantee sufficient wraparound). The computed values of v₁,...,v k (and the entity's modulus n, if applicable) are placed in the public key directory. The actual generation and verification of proofs of identity and signatures is carried out in the way specified above. Known components can be used for the apparatus of the present invention as portrayed in Figure 1 and Figure 2, the means to carry out the several steps of the process being apparent to those skilled in the art. Although the invention has been shown and described in terms of a specific preferred embodiment and variants, changes and modifications are possible within the scope of the invention as defined by the following Claims.

Claims: A method of proving the identity of an entity comprising the steps of a) establishing a public key for the entity consisting of a modulus n which is the product of at least two prime numbers, and a sequence of k small numbers v₁,...,v k ; b) computing a private hey for the entity consisting of k numbers s₁,...,s k satisfying s j d v j =1 (mod n) for all 1≦j≦k, where d is a universally known constant larger than 1; c) transmitting from the entity to a verifier x=r d (mod n) where r is a random number in the range 0<r<n; d) transmitting from the verifier to the entity a sequence of k random numbers e₁,...,e k in the range 0≦e j <d; e) transmitting from the entity to the verifier the value f) verifying the identity of the entity by checking that A method as claimed in claim 1 wherein steps c, d, e and f are repeated t times where t≧1. A method as claimed in claim 1 wherein the v j 's are the same for all the entities. A method as claimed in claim 1 wherein the v j 's are the first k prime numbers. A method as claimed in claim 1 including the further step of storing the modulus n and the k numbers v₁,...,v k in a public key directory. A method as claimed in claim 1 including the further step of transmitting the modulus n and the k numbers v₁,...,v k from the entity to the verifier along with a trusted center's signature on this public key. A method as claimed in claim 3 including the further step of storing the modulus n in a public key directory. A method as claimed in claim 3 including the further step of transmitting the modulus n from the entity to the verifier along with a trusted center's signature on this public key. A method as claimed in claim 1 wherein d k ≧2²⁰. A method as claimed in claim 1 wherein d is either 2 or 3. A method as claimed in claim 1 wherein k is at least 20. A method as claimed in claim 1 wherein n is at least 512 bits long. A method as claimed in claim 1 wherein the secret key s₁,...,s k is chosen first and each v j is then computed as A method as claimed in claim 13 wherein all the entities use the same modulus n which is chosen by a trusted center that keeps its factorization secret. A method as claimed in claim 13 wherein the s j are chosen as random numbers for all 1≦j≦k. A method of generating a signature for a message m comprising the steps of a) establishing a public key for the entity consisting of a modulus n which is the product of at least two prime numbers, and a sequence of k small numbers v₁,...,v k ; b) computing a private key for the entity consisting of k numbers s₁,...,s k satisfying s j d r j =1 (mod n) for all 1≦j≦k, where d is a universally known constant larger than 1; c) agreeing on a common cryptographically strong pseudo random function f which maps its inputs into a sequence of k numbers e =e1,...,e k in the range 0≦e j <d; d) choosing a random number r in the range 0<r<n and computing e =f (r d (mod n), m); e) computing f) transmitting or storing e and y as the entity's signature on m. A method according to claim 16 comprising the further steps of a) computing and b) comparing the computed values to e . A method as claimed in claim 16 wherein t≧1 random numbers r₁,...,r t are chosen in the range 0<r i <n, e =e 1 / 1,...,e t / k numbers in the range 0≦e i / j<d are computed as e =f (r d / 1 (mod n),...r d / t (mod n), m) , t values y₁,...,y t are computed as and e , y₁,...,y t are transmitted or stored as the entity's signature on m. A method as claimed in claim 18 comprising the further steps of computing and comparing the computed value to e . A method as claimed in claim 18 wherein the v j 's are the same for all the entities. A method as claimed in claim 18 wherein the v j 's are the first k prime numbers. A method as claimed in claim 18 including the further step of storing the modulus n and the k numbers v₁,...,v k in a public key directory. A method as claimed in claim 18 including the further step of incorporating the modulus n, the k numbers v₁,...,v k , and a trusted center's signature on these values as part of the signature of the message m. A method as claimed in claim 20 including the further step of storing the modulus n in a public key directory. A method as claimed in claim 20 including the further step of incorporating the modulus n and a trusted center's signature on it as part of the signature of the message m. A method as claimed in claim 18 wherein d k ≧2⁶⁴. A method as claimed in claim 18 wherein d is either 2 or 3. A method as claimed in claim 18 wherein k is at least 64. A method as claimed in claim 18 wherein n is at least 512 bits long. A method as claimed in claim 18 wherein the secret key s₁,...,s k is chosen first and each v j is then computed as A method as claimed in claim 30 wherein all the entities use the same modulus n which is chosen by a trusted center that keeps its factorization secret. A method as claimed in claim 30 wherein the s j are chosen as random numbers for all 1≦j≦k. Apparatus for proving the indentity of an entity comprising a) means for establishing a public key for the entity consisting of a modulus n which is the product of at least two prime numbers, and a sequence of k small numbers v₁, ... ,v k ; b) means for computing a private key for the entity consisting of k numbers s₁,...,s k satisfying s j d v j =1 (mod n) for all 1≦j≦k, where d is a universally known constant larger than 1; c) means for transmitting from the entity to a verifier x=r d (mod n) where r is a random number in the range 0<r<n; d) means for transmitting from the verifier to the entity a sequence of k random numbers e₁,...,e k in the range 0≦ej<d; e) means for transmitting from the entity to the verifier the value f) means for verifying the identity of the entity by checking that Apparatus as claimed in claim 33 including means for repeating t times where t≧1, the transmitting from the entity to a verifier x=r d (mod n) where r is a random number in the range 0<r<n, the transmitting from the verifier to the entity of a sequence of k random numbers e₁,...,e k in the range 0≦e j <d, the transmitting from the entity to the verifier the value and the verifying the identity. Apparatus as claimed in claim 33 wherein the v j 's are the same for all the entities. Apparatus as claimed in claim 33 wherein the v j 's are the first k prime numbers. Apparatus as claimed in claim 33 including means for storing the modulus n and the k numbers v₁,...,v k in a public key directory. Apparatus as claimed in claim 33 including means for transmitting the modulus n and the k numbers v₁,...,v k from the entity to the verifier along with a trusted center's signature on this public key. Apparatus as claimed in claim 35 including means for storing the modulus n in a public key directory. Apparatus as claimed in claim 35 including means for transmitting the modulus n from the entity to the verifier along with a trusted center's signature on this public key. Apparatus as claimed in claim 33 wherein d k ≧2²⁰. Apparatus as claimed in claim 33 wherein d is either 2 or 3. Apparatus as claimed in claim 33 wherein k is at least 20. Apparatus as claimed in claim 33 wherein n is at least 512 bits long. Apparatus as claimed in claim 33 wherein the secret key s₁,...,s k is chosen first and each v j is then computed as Apparatus as claimed in claim 45 wherein all the entities use the same modulus n which is chosen by a trusted center that keeps its factorization secret. Apparatus as claimed in claim 45 wherein the s j are chosen as random numbers all 1≦j≦k. Apparatus for generating a signature for a message m comprising a) means for establishing a public key for the entity consisting of a modulus n which is the product of at least two prime numbers, and a sequence of k small numbers v₁,...,v k ; b) means for computing a private key for the entity consisting of k numbers s₁,...,s k satisfying s j d v j =1 (mod n) for all 1≦ j ≦k, where d is a universally known constant larger than 1; c) means for agreeing on a common cryptographically strong pseudo random function f which maps its inputs into a sequence of k numbers e =e₁,...,e k in the range 0≦e j <d; d) means for choosing a random number r in the range 0<r<n and computing e =f (r d (mod n), m); e) means for computing f) means for transmitting or storing e and y as the entity's signature on m. Apparatus according to claim 48 comprising a) computing means for computing and b) comparing means for comparing these computed values to e . Apparatus as claimed in claim 48 wherein t≧ 1 random numbers r₁,...,r t are chosen in the range 0 < r i < n, e =e 1 / 1 ,...,e t / k numbers in the range 0≦e i / j < d are computed as e=f (r d / 1 (mod n),...,r d / t (mod n), m) , t values y₁,...,y t are computed as and e , y₁,...,y t are transmitted or stored as the entity's signature on m. Apparatus as claimed in claim 50 comprising computing means for computing and comparing means for comparing the computed values to e . Apparatus as claimed in claim 50 wherein the v j 's are the same for all the entities. Apparatus as claimed in claim 50 wherein the V j 's are the first k prime numbers. Apparatus as claimed in claim 50 including means for storing the modulus n and the k numbers v₁,...,v k in a public key directory. Apparatus as claimed in claim 50 including means for incorporating the modulus n, the k numbers v₁,...,v k , and a trusted center's signature on these values as part of the signature of the message m. Apparatus as claimed in claim 52 including means for storing the modulus n in a public key directory. Apparatus as claimed in claim 52 including means for incorporating the modulus n and a trusted center's signature on it as part of the signature of the message m. Apparatus as claimed in claim 50 wherein d k ≧2⁶⁴. Apparatus as claimed in claim 50 wherein d is either 2 or 3. Apparatus as claimed in claim 50 wherein k is at least 64. Apparatus as claimed in claim 50 wherein n is at least 512 bits long. Apparatus as claimed in claim 50 wherein the secret key s₁,...,s k is chosen first and each v j is then computed as Apparatus as claimed in claim 62 wherein all the entities use the same modulus n which is chosen by a trusted center that keeps its factorization secret. Apparatus as claimed in claim 62 wherein the s j are chosen as random numbers for all 1≦j≦k.

Inventors: SHAMIR ADI, SHAMIR, ADI
Applicants: YEDA RES & DEV, YEDA RESEARCH AND DEVELOPMENT COMPANY LIMITED
Application year: 1989
Main classification: G07F7
IPC codes: G07F7, G09C1, H04L9