PUBLIC KEY DIVERSIFICATION METHOD

Abstract: A method is disclosed whereby individual members of a group of members or entities may be provided, under the control of a trusted member, referred to as the parent, with respective individual secret keys for use in public key cryptography, such that the matching public key can be readily derived, and group membership authenticated. The parent initially establishes a public key (e, N) where N = P.Q is the product of two primes. In response to a request from a group member, and the parent selects two further primes R, S and communicates two values dependent thereon to the requesting member, which selects two more primes T and U for use in conjunction with the received values to establish the member's secret key.

Description: PUBLIC KEY DIVERSIFICATION METHOD This invention relates to public key cryptography. Public key cryptography is described, for example, in the article: Communications of the ACM, vol.21, No. 2 , February 1978, pages 120 - 126, R.L. Rivest et al: "A Method for Obtaining Digital Signatures and Public-Key Cryptosystems". Briefly, in public key cryptography, a message is encrypted by representing it as a number M, raising M to a publicly specified power e, and then taking the remainder when the result is divided by a publicly specified product N, of two large secret prime numbers P and Q. Decryption is similar, except that a different, secret, power d is used, where e.d = 1 (mod (P-l) .(Q-D) . The security of such a system depends in part on the difficulty of factoring the publicly specified value N. A further feature of such a system is that messages can be "signed" using the secretly held decryption key d, and anyone can verify this signature using the publicly revealed encryption key e. More particularly, if N is the product of two prime numbers P, Q, i.e., if N = P.Q; and if e is relatively prime to cp(N) , where is Euler's totient function of N (the number of integers less than N which are relatively prime to N) , then, in modulus N arithmetic, a value d can be determined (see for example, the aforementioned article by Rivest et al) which is the multiplicative inverse of e such that The value d is commonly referred to as the secret key counterpart of the public key e. Thus, if - 2 - X = Y e (mod N) , then Y = X d (mod N) for all values of Y, 0 « Y < N. As mentioned above, this knowledge has been employed in the art of cryptography to design various ciphering systems where typically the integers e and N are dis¬ closed to parties of the cryptographic sessions as a public ciphering key and the integer d is held by the party originating the keys as a secret key value. Users of these techniques may therefore encipher data Y using the public key (e, N) in reasonable knowledge that only the holder of the secret key value d may decipher the data Y. Similarly the holder of the secret key value d may enci¬ pher data X using (d, N) so that any party with know¬ ledge of the public key values (e, N) may determine that only the holder of the secret key value d could have been the source of data X. These procedures permit users of the technique to enci¬ pher sensitive data and also to digitally sign that data to authenticate its source. The proof of the aforementioned relationships will now be established. Given that N = P.Q and e.d = 1 mod φ(N) (1) where both P and Q are prime integers, then ψ Ut) = <p(P). <p(Q) = (P-l).(Q-l). It will be shown that, if X = Y e (mod N) (2) then Y = X d (mod N) . (3) Note that if (3) is true, then from (2) X = X e - d (mod N) From (1), X e « d = χl+κφ ( N ) ( mo N) where K is some integer. Since P is prime, it is known (Fermat's "little" theorem) that χP-1 = i ( mo . P ) f or a ιι x, o < X < P. Therefore since P-l 'divides α>(N) = (P-l).(Q-l) x l+Kφ ( N ) = x (mod p) for all X, 0 < X < P. (4) Similarly, since Q is prime x l+K< ( N ) - x (mod Q) for all X, 0 ζ X < Q. (5) Equations (4) and (5) imply that x l+K<f(N ) - x (mod .Q) for all x, 0 < X < N, i.e. X = ye = x e.d = X 1+K<?(N) = x (mod N ) Therefore, if X = Y e (mod N) then Y = X d (mod N) for all Y, 0 <J Y < N An object of the present invention is to provide a method by which a group consisting of a plurality of members or entities may provide any member of the group with a secret key for the purpose of deciphering data or digi¬ tally signing data, which secret key is known to that member only, but where the matching public key can be easily derived by any entity (whether or not a group member) and whereby it can be verified that the member using the secret key is a legitimate member of the group. Therefore, according to the present invention, there is provided a method of diversifying a key pair for use in public key cryptography by a requesting entity, including the step of generating at a parent entity, a public key N, e, where the modulus N is the product of first and second prime numbers P,Q and e is a corresponding public key integer value, characterized by the steps of: selecting third and fourth prime numbers R,S and transmitting to said requesting entity a first value N m i and a second value <p (Nmj.) where said first value N i = N.R.S and where said second value φ(N m i) = <p(N) .(R-l) .(S-l) , wherein the symbol t^> represents Euler's totient function; selecting, at said requesting entity, fifth and sixth prime numbers T,ϋ; and computing, at said requesting entity a third value N m and a fourth value d m , where Nm = N mi .T.U, and where d m = (l+K<p(N m ))/e , wherein (N m ) =< (N m i) . (T-l) . (U-l) and wherein K and d m are integers, whereby d m is adapted to be used by said requesting entity as the secret key counterpart of the public key value e with respect to the modulus N m . In a particular application, the group of members or entities may be an international transaction card issuing association which has many members, for example of the order of thousands of members. One embodiment of the invention will now be described by way of example, with reference to the accompanying draw¬ ings, in which:- Fig. 1 is a block diagram of processing apparatus located at the group parent; — D — Fig. 2 is a flowchart illustrating a generation or set-up phase of operation of the parent processing apparatus; Fig. 3 is a flowchart illustrating an operational phase of the parent processing apparatus in response to a member request; Fig. 4 is a block diagram of processing apparatus located at a group member; Fig. 5 is a flowchart illustrating a generation phase of operation for the member processing apparatus; Fig. 6 is a flowchart illustrating an operational phase of the member processing apparatus; and Fig. 7 is a flowchart illustrating an operational phase for an entity communicating with a group member. As an aid to understanding the present invention, the mathematical principle underlying the invention will first be explained. Thus, the mathematical relationships established hereinabove for the case where N = P.Q is the product of two prime numbers are readily seen to be equally valid for the case where N is the product of more than two prime numbers, since for such a number N, all the integers, I which are factors of N satisfy X 1 " 1 = 1 (mod I) . Thus, where, for example, N - P.Q.R.S.T.U is the product of six prime numbers, then if X « γ β (mod N) then Y = X d (mod N) for all Y, 0 < Y < N provided that e .d = 1 (mod φ(N) ) where (N) = (P-l ) . (Q-l) . (R-l ) . S-l ) . (T-l ) . (U-l k The preferred embodiment of the invention will now be described in relation to a group of members or entities of which one specified member is a trusted member herein referred to as the "parent". For such a group of members, three problems are addressed herein:- 1. Proof of group membership. 2. Protection of the individual member secret keys. 3. Easy derivation of the matching member public keys. Referring now to Fig. 1, there is shown a block diagram of apparatus which is located at the parent. Such appa¬ ratus includes a security processor 10. The security processor 10 comprises a housing 12 which contains a microprocessor 14, a program PROM 16, a RAM (random access memory) working memory 18, a secure nonvolatile memory 20, a random number generator 22, tamper detection circuitry 24, and an input/output unit 26. The devices 14, 16, 18, 20, 22 and 26 are interconnected by an inter¬ nal bus 28. The tamper detection circuity 24 is adapted to detect any unauthorized tampering with the housing 12, such as an attempt to penetrate the housing, and to pro¬ vide a reset signal over a line 30 to reset the secure nonvolatile memory 20 in response to the detection of such tampering. An example of a suitable security pro¬ cessor is described in more detail in U.S. Patent No. 4,593,384. The security processor 10 is connected over an external bus 32 to a plurality of peripheral devices, including a keyboard 34, which enables data to be manually entered, a display 36, a printer 38 which enables output data to be printed and a communications interface 40 (such as a modem) , which enables communication with remote devices to take place over a channel 42. Refering now to Fig. 2, there is shown a flowchart for the security processor 10 located at the parent, during generation of a public key (e,N). In an initial input step, an initialize or set-up command is applied as shown at box 50, to condition the security processor 10 to perform the desired operation. Next, as shown at box 52, a routine provides for the selection of two large random prime numbers P and Q. Such routines are well-known. For instance, odd random numbers of the desired size can be generated by the random number generator 22 and tested for primality by probabilistic testing methods, as explained in the aforementioned article by Rivest et al. Next, as shown at box 54, three values are derived, namely the value N, which is the product of P and Q; the value <p(N) which is the product of P-l and Q-l; and a value e which is relatively prime to -φ(N) , that is to say, such that the greatest common divisor (gcd) of e and α>(N) is 1. Preferably e is a prime number, for a reason which will be explained hereinafter. Then, as shown at box 56, the values N, φ(N) and e are stored in the secure nonvolatile memory 20, Fig. 1. The values N and e are now available in response to a suitable request signal applied to the security processor 10,. as indicated at output box 58. Refering to Fig. 3, there is shown a flowchart for the security processor 10 located at the parent during an operational phase, in response to a request signal supplied from a group member. Thus, as shown at box 70, the security processor 10 receives as an input, a member request command together with a member identification, ID, identifying the group member supplying the request. Then, as shown at box 72, a routine provides for the selection of two large prime numbers R and S, different from the primes P and Q. Next, as shown at box 74, a value N j_ is computed, which is the product of N, R and S: N mi = N.R.S, and also the value 7( m j) , where <p(N mi ) = <p(N) .(R-l) . (S-l) . Next, as shown at box 76, the value of the member ID is stored in the secure memory 20, together with the values of . These stored values are now available for output from the security processor 10, as shown at box 78, and may be displayed, printed or supplied to a security processor 110, Fig. 4, located at the requesting member, which will now be described. Refering to Fig. 4, there is shown a block diagram of apparatus which is located at each member of the group. The provided apparatus is similar to the apparatus located at the parent, and described hereinabove with reference to Fig. 1. Thus, the member apparatus includes a security processor 110, having a housing 112 which contains a microprocessor 114, a program PROM 116, a RAM working memory 118, a secure nonvolatile memory 120, a random number generator 122, tamper detection circuitry 124 and an input/output unit 126. An internal bus 128 interconnects the various devices as shown in Fig. 4. The tamper detection circuitry 124 can issue a reset sig¬ nal over a line 130 in response to the detection of an attempt to penetrate the housing 112. Reference is again directed to U.S. Patent No. 4,593,384 for a more detailed description of a suitable security processor. The secur¬ ity processor 110 is connected over an external bus 132 to a keyboard 134, a display 136, a printer 138 and a communications interface 140, enabling communication with remote devices to take place over a channel 142. Referring now to Fig. 5, there is shown a flowchart for the security processor 110 located at the group member, during a key generation phase for the group member. Initially, an initialize command is -supplied to the processor 110, together with the values N,e, N m i and c_ (N m i) , which may be derived from a. cipher generated by the security processor 10 at the parent and transmitted over the channels 42 and 142 to the security processor 110. Next, as shown at box 152, a routine is effected to select two large prime numbers T and ϋ. It should be understood that all the prime numbers P, Q, R, S, T, U should be different. The parent selects P, Q, R and S and can ensure their difference. However, the member does not know these values and could accidentally select T or ϋ equal to P, Q, R or S. For large primes this probability is remote. However, for smaller primes the probability may be of concern. This probability may be avoided by the parent supplying to the security processor 110 a magnitude boundary for T, ϋ values. For example, if P, Q, R, S > 2150 then T, U < 2 1 50 It should further be understood that, in order not to restrict the choice of primes at the member, the value of e initially selected by the parent should be a prime number, thereby ensuring the relative primality of e with respect to any Φ(N m ) value. Next, as shown at box 154, four values are computed. Firstly, a value N m , which is the product of N^, T and ϋ: m = mi T.ϋ. Secondly, by dividing N m by N, a value N v is computed: Nmv = Ψ •% The value N mv will be referred to herein as the "member 02456 variant". Thirdly, the value tp(N m ) is computed as the product of T - , (N m i), T-l and U-l: Finally, an integer d m is computed from the formula d m = !+*?( ) φ e In this formula, K is an integer value desirably selected such that d m which is the member's secret key, is the smallest integer computable from the formula. It is pointed out that steps 152 and 154, carried out at the member processor 110 have the effect of preventing the parent from determining the member's (N m ) , and hence the member's secret key, since the parent would need to factor T.U = Nu mi in order to obtain T-l and U-l, and such factorization is infeasible with T and U being suitably large prime numbers. Similarly the member, knowing N, m i and fl?( m i) cannot feasibly determine the parent Φ(N) and thus P, Q, since this requires the factorization of R.S = N m £/N. Thus, it will be appreciated that the value <p(N m ) is sourced from a "seed value" N, but is "doubly diversified" to prevent calculation by any person or entity other than the member owner, who may only derive a legitimate < (N m ) and thus a legitimate d m by utilizing the values supplied by the parent. Returning now to Fig. 5, at box 156, the values N m , d m , e, N, and N v are stored in the secure nonvolatile memory 120. Finally, at box 158, the member variant value N mv is supplied as an output, for printing, display and/or remote transmission * This member variant value is "published" or made available upon request, and the member's public key modulus can be readily derived by multiplying N mv by N: N m = N m v- N - Thus, the member has the public key (e, N ) , with the corresponding secret key counterpart being d m . However, the member variant value N mv rather than N m itself is published by the member. With the above in mind, it will be appreciated that the authenticity of data Y emanating from the member may be established by the member digitally signing the data with d m , such that X = ydm ( mo Nm ) and that such signature X may be verified by any entity (whether a member of the group or not) by calculating Y = X e (mod N. ' N mv ) This procedure not only determines the validity of the signature supplied by the member via N mv , but also determines valid membership of the group via N. Consequently, if proof of group membership is estab¬ lished, then the value N mv may be trusted, even though it may be unknown immediately prior to the authenticity test. It can therefore be delivered with the digital signature, obviating the need for any prior knowledge by the signature verifier except for the published group N and e values. Furthermore, enciphered data Y can be feasibly deciphered only by the member by utilizing mod N ro exponentiation to the power d m provided that the transmitter of such enciphered data ultilizes the group public e value and the N value modified by the member variant N mv . Referring now to Fig. 6, there is shown a flowchart for the operational phase of the member security processor 110. Thus, as shown at box 170, there is input a deci¬ pher command, together with enciphered data or cleartext. As shown at box 172, the input data is raised to the exponent power d^, using the member's stored secret key d m , and the result expressed as a residue, mod N m , using 2456 the member's public key modulus value N m , thereby provid¬ ing cleartext or a digital signature. Finally, as shown at box 174, the provided cleartext or digital signature is made available as an output signal for printing, display or remote transmission, together with the member variant value N mv . It will be appreciated from the above that communication with a group member can be established by an entity which is not a group member. Communication by such an entity is illustrated in the flowchart shown in Fig. 7, it being understood that the entity has a conventional processor, such as a PC (personal computer) , including computing and storage facilities. Thus, box 180 shows an input as com¬ prising an encipher command, the values N and e, which are supplied by the group parent, or derived from pub¬ lished lists, input data in the form of cleartext or a signature, and a member variant value N mv corresponding to the member with which the entity desires to communi¬ cate. Next, as shown at box 182, the product of N mv and N is computed to produce N m , which is the public key- modulus of the communicating group member. Then, the input data (cleartext or signature) is subject to expo¬ nentiation to the power e, modulo N m to produce enci¬ phered data or cleartext, such computed data being stored if desired, as shown at box 184. The enciphered data or cleartext are then available to be provided as output signals, as shown at box 186. An advantage of the arrangement described herein is that a forger knowing N cannot feasibly calculate a suitable N mv and matching d m to produce a valid signature without knowledge of a suitable cp(N m ) . Note that: d m = 1 + Kφ(N m ) <p. (N " m m) = q?(N) T (N mv ) Although e (N mv ) can be determined by a forger selecting his own N mv , to calculate <_p(N) requires a knowledge of P and Q. These values are known only to the parent, and are kept secret. Thus, provided that the secrecy of P and Q can be maintained, a forger can be defeated. As a further safeguard, to protect against the accidental disclosure of a member's CP(N m i), the parent or group may decide to publish or make readily available the N mv values of all the group members, thus precluding fraudulent N mv values from being used. Further, one member cannot masquerade as another member because the correct d m requires knowledge of Φ (H m __ ) and it is not possible to determine another member's <D ( m i) without knowledge of Φ(N) and the member's R and S values. All these values are kept secret by the parent. ! Thus, by virtue of the present invention, each group member is protected from other members, yet can prove both himself specifically and his membership of the group generally. Even the group parent cannot masquerade as another member. The invention is therefore suitable in environments such as an international transaction card association which may have many thousands of card issuing members. Each of these card issuers could secure himself from forgery of his cards without the need to previously disclose the information required to establish the authenticity of his cards to various authenticators such as card accepting merchants. The card acceptor need only have prior knowledge of the association's global values N and e in order to readily determine the authenticity of the card. The card would need to carry and disclose as required the member's variant Nm V and a value which may be determined as having been produced by the utilization of the e ber's specific secret key d m . The card acceptor could then un-sign that value and compare it to a known value appropriate for that card or transaction.

Claims: CLAIMS 1. A method of diversifying a key pair tor use in public key cryptography by a requesting entity, including the step of generating at a parent entity, a public key N, e, where the modulus N is the product of first and second prime numbers P,Q and e is a corresponding public key integer value, characterized by the steps of: selecting third and fourth prime numbers R,S and transmitting to said requesting entity a first value N m i and a second value < (N m i) where said first value N m i = N.R.S and where said second value ^ N i^ = Φ(N) . (R-l) . (S-l) , wherein the symbol ωrepresents Euler's totient function; selecting, at said requesting entity, fifth and sixth prime numbers T,U; and computing, at said requesting entity a third value N m and a fourth value d m , where N m = N m i.T.U, and where wherein <f(N m ) = <p(N m i) . T-l). (U-l) and wherein K and d m are integers, whereby d m is adapted to be used by said requesting entity as the secret key counterpart of the public key value e with respect to the modulus N m . 2. A method according to claim 1, character¬ ized by the steps of: storing the values of N, (N) and e in storage means (20) at said first entity. 3. A method according to claim 2, character¬ ized by the step of storing in said storage means (20) an identification code identifying said requesting entity, said first value N m j and said second value < (N m i) . 4. A method according to claim 3, character¬ ized by the step of computing, at said requesting entity. a fifth value N mv , where and storing said fifth value in further storage means (20) at said requesting entity. 5. A method according to any one of the pre¬ ceding claims, characterized in that the value of said public key integer value e is a prime number. 6. A method according to claim 4 or claim 5, characterized by the step of multiplying the value N mv by the value N to yield the value N m , utilization of which, with the value e, enables the verification of digital signatures or the enciphering of data sent from or to said requesting entity.

Inventors: AUSTIN JEFFREY REGINALD, AUSTIN, JEFFREY, REGINALD
Applicants: NCR CO, NCR CORPORATION
Application year: 1989
Main classification: H04L9
IPC codes: H04L9