Abstract:
A key establishment protocol between a pair of correspondents includes the generation by each correspondent of respective signatures. The signatures are derived from information that is private to the correspondent and information that is public. After exchange of signatures, the integrity of exchange messages can be verified by extracting the public information contained in the signature and comparing it with information used to generate the signature. A common session key may then be generated from the public and private information of respective ones of the correspondents.

Description:
REFERENCE TO RELATED APPLICATIONS 
     This is a continuation-in-part of U.S. application Ser. No. 08/442,833, filed May 17, 1995, now U.S. Pat. No. 5,761,305, entitled &#34;Key Agreement and Transport Protocol with Implicit Signatures&#34;. 
    
    
     BACKGROUND OF THE INVENTION 
     The present invention relates to key agreement protocols for transfer and authentication of encryption keys. 
     To retain privacy during the exchange of information it is well known to encrypt data using a key. The key must be chosen so that the correspondents are able to encrypt and decrypt messages but such that an interceptor cannot determine the contents of the message. 
     In a secret key cryptographic protocol, the correspondents share a common key that is secret to them. This requires the key to be agreed upon between the correspondents and for is provision to be made to maintain the secrecy of the key and provide for change of the key should the underlying security be compromised. 
     Public key cryptographic protocols were first proposed in 1976 by Diffie-Hellman and utilized a public key made available to all potential correspondents and a private key known only to the intended recipient. The public and private keys are related such that a message encrypted with the public key of a recipient can be readily decrypted with the private key but the private key cannot be derived from the knowledge of the plaintext, ciphertext and public key. 
     Key establishment is the process by which two (or more) parties establish a shared secret key, called the session key. The session key is subsequently used to achieve some cryptographic goal, such as privacy. There are two kinds of key agreement protocol; key transport protocols in which a key is created by one party and securely transmitted to the second party; and key agreement protocols, in which both parties contribute information which jointly establish the shared secret key. The number of message exchanges required between the parties is called the number of passes. A key establishment protocol is said to provide implicit key authentication (or simply key authentication) if one party is assured that no other party aside from a specially identified second party may learn the value of the session key. The property of implicit key authentication does not necessarily mean that the second party actually possesses the session key. A key establishment protocol is said to provide key confirmation if one party is assured that a specially identified second party actually has possession of a particular session key. If the authentication is provided to both parties involved in the protocol, then the key authentication is said to be mutual; if provided to only one party, the authentication is said to be unilateral. 
     There are various prior proposals which claim to provide implicit key authentication. 
     Examples include the Nyberg-Rueppel one-pass protocol and the Matsumoto-Takashima-Imai (MTI) and the Goss and Yacobi two-pass protocols for key agreement. 
     The prior proposals ensure that transmissions between correspondents to establish a common key are secure and that an interloper cannot retrieve the session key and decrypt the ciphertext. In this way security for sensitive transactions such as transfer of funds is provided. 
     For example, the MTI/A0 key agreement protocol establishes a shared secret K, known to the two correspondents, in the following manner. 
     1. During initial, one-time setup, key generation and publication is undertaken by selecting and publishing an appropriate system prime p and generator αεZ p   *  in a manner guaranteeing authenticity. Correspondent A selects as a long-term private key a random integer &#34;a&#34;,1&lt;a&lt;p-1, and computes a long-term public key Z A  =α a  mod p. B generates analogous keys b, Z B . A and B have access to authenticated copies of each other&#39;s long-term public key. 
     2. The protocol requires the exchange of the following messages. 
     A→B: α x  mod p(1) 
     A←B: α y  mod p(2) 
     The values of x and y remain secure during such transmissions as it is impractical to determine the exponent even when the value of α and the exponentiation is known provided of course that p is chosen sufficiently large. 
     3. To implement the protocol the following steps are performed each time a shared key is required. 
     (a) A chooses a random integer x,1≦x≦p-2, and sends B message (1) i.e. α x  mod p. 
     (b) B chooses a random integer y,1≦y≦p-2, and sends A message (2) i.e. α y  mod p. 
     (c) A computes the key K=(α y ) a  Z B   x  mod p. 
     (d) B computes the key K=(α x ) b  Z A   y  mod p. 
     (e) Both share the key K-α bx+ay . 
     In order to compute the key K, A must use his secret key a and the random integer x, both of which are known only to him. Similarly B must use her secret key b and random integer y to compute the session key K. Provided the secret keys a,b remain uncompromised, an interloper cannot generate a session key identical to the other correspondent. Accordingly, any ciphertext will not be decipherable by both correspondents. 
     As such this and related protocols have been considered satisfactory for key establishment and resistant to conventional eavesdropping or man-in-the-middle attacks. 
     In some circumstances it may be advantageous for an adversary to mislead one correspondent as to the true identity of the other correspondent. 
     In such an attack an active adversary or interloper E modifies messages exchanged between A and B, with the result that B believes that he shares a key K with E while A believes that she shares the same key K with B. Even though E does not learn the value of K the misinformation as to the identity of the correspondents may be useful. 
     A practical scenario where such an attack may be launched successfully is the following. Suppose that B is a bank branch and A is an account holder. Certificates are issued by the bank headquarters and within the certificate is the account information of the holder. Suppose that the protocol for electronic deposit of funds is to exchange a key with a bank branch via a mutually authenticated key agreement. Once B has authenticated the transmitting entity, encrypted funds are deposited to the account number in the certificate. If no further authentication is done in the encrypted deposit message (which might be the case to save bandwidth) then the deposit will be made to E&#39;s account. 
     It is therefore an object of the present invention to provide a protocol in which the above disadvantages are obviated or mitigated. 
     BRIEF SUMMARY OF THE INVENTION 
     According therefore to the present invention there is provided a method of authenticating a pair of correspondents A,B to permit exchange of information therebetween, each of said correspondents having a respective private key a,b and a public key p A ,p B  derived from a generator α and respective ones of said private keys a,b, said method including the steps of 
     i) a first of said correspondents A selecting a first random integer x and exponentiating a function f(α) including said generator to a power g.sup.(x) to provide a first exponentiated function f(α) g (x) ; 
     ii) said first correspondent A generating a first signature s A  from said random integer x and said first exponentiated function f(α) g (x) ; 
     iii) said first correspondent A forwarding to a second correspondent B a message including said first exponentiated function f(α) g (x) and the signature s A  ; 
     iv) said correspondent B selecting a second random integer y and exponentiating a function f&#39;(α) including said generator to a power g.sup.(y) to provide a second exponentiated function f&#39;(α) g (y) and a signature s B  obtained from said second integer y and said second exponentiated function f(α) g (x) ; 
     v) said second correspondent B forwarding a message to said first correspondent A including said second exponentiated function f&#39;(α) g (y) and said signature s B   
     vi) each of said correspondents verifying the integrity of messages received by them by computing from said signature and said exponentiated function in such a received message a value equivalent to said exponentiated function and comparing said computed value and said transmitted value; 
     vii) each of said correspondents A and B constructing a session key K by exponentiating information made public by said other correspondent with said random integer that is private to themselves. 
     Thus although the interloper E can substitute her public key p E  =α ae  in the transmission as part of the message, B will use p E  rather than p A  when authenticating the message. Accordingly the computed and transmitted values of the exponential functions will not correspond. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     Embodiments of the invention will now be described by way of example only with reference to the accompanying drawings in which: 
     FIG. 1 is a schematic representation of a data communication system. 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     Referring therefore to FIG. 1, a pair of correspondents, 10,12, denoted as correspondent A and correspondent B, exchange information over a communication channel 14. A cryptographic unit 16,18 is interposed between each of the correspondents 10,12 and the channel 14. A key 20 is associated with each of the cryptographic units 16,18 to convert plaintext carried between each unit 16,18 and its respective correspondent 10,12 into ciphertext carried on the channel 14. 
     In operation, a message generated by correspondent A, 10, is encrypted by the unit 16 with the key 20 and transmitted as ciphertext over channel 14 to the unit 18. 
     The key 20 operates upon the ciphertext in the unit 18 to generate a plaintext message for the correspondent B, 12. Provided the keys 20 correspond, the message received by the correspondent 12 will be that sent by the correspondent 10. 
     In order for the system shown in FIG. 1 to operate it is necessary for the keys 20 to be identical and therefore a key agreement protocol is established that allows the transfer of information in a public manner to establish the identical keys. A number of protocols are available for such key generation and are variants of the Diffie-Hellman key exchange. Their purpose is for parties A and B to establish a secret session key K. 
     The system parameters for these protocols are a prime number p and a generator α of the multiplicative group Z p   * . Correspondent A has private key a and public key p A  =α a . Correspondent B has private key b and public key p B  =α b . In the protocol exemplified below, text A  refers to a string of information that identifies party A. If the other correspondent B possesses an authentic copy of correspondent A&#39;s public key, then text A  will contain A&#39;s public key certificate, issued by a trusted center; correspondent B can use his authentic copy of the trusted center&#39;s public key to verify correspondent A&#39;s certificate, hence obtaining an authentic copy of correspondent A&#39;s public key. 
     In each example below it is assumed that, an interloper E wishes to have messages from A identified as having originated from E herself. To accomplish this, E selects a random integer e, 1≦e≦p-2, computes p E  =(p A ) e  =α ae  mod p, and gets this certified as her public key. E does not know the exponent ae, although she knows e. By substituting text E  for text A , the correspondent B will assume that the message originates from E rather than A and use E&#39;s public key to generate the session key K. E also intercepts the message from B and uses his secret random integer e to modify its contents. A will then use that information to generate the same session key allowing A to communicate with B. 
     To avoid interloper E convincing B that he is communicating with E, the following protocol is adapted. 
     The purpose of the protocol is for parties A and B to establish a session key K. The protocols exemplified are role-symmetric and non-interactive. 
     The system parameters for this protocol are a prime number p and a generator α of the multiplicative group Z p   * . User A has private key a and public key p A  =α a . User B has private key b and public key p B  =α b . 
     First Protocol 
     1. A picks a random integer x,1≦x≦p-2, and computes r A  =α x  and a signature s A  =x-r A  aα a  mod (p-1). A sends {r A ,s A ,text A  } to B. 
     2. B picks a random integer y,1≦y≦p-2, and computes r B  =α y  and a signature s B  =y-r B  b.sub.α b  mod (p-1). B sends {r B ,s B ,text B  } to A. 
     3. A computes α S .sbsp.B (p B ) r .sbsp.B.spsp.α.spsp.b and verifies that this is equal to r B . A computes the session key K=(r B ) x  =α xy . 
     4. B computes α S .sbsp.A (p A ) r .sbsp.A.spsp.α.spsp.b and verifies that this is equal to r A . B computes the session key K=(r A ) y  =α xy . 
     Should E replace text A  with text E , B will compute α S .sbsp.A (p E ) r .sbsp.A.spsp.α.spsp.a which will not correspond with the transmitted value of r A . B will thus be alerted to the interloper E and will proceed to initiate another session key. 
     One draw back of the first protocol is that it does not offer perfect forward secrecy. That is, if an adversary learns the long-term private key a of party A, then the adversary can deduce all of A&#39;s past session keys. The property of perfect forward secrecy can be achieved by modifying Protocol 1 in the following way. 
     Modified First Protocol 
     In step 1, A also sends α x .sbsp.1 to B, where x 1 , is a second random integer generated by A. Similarly, in step 2 above, B also sends α y .sbsp.1 to A, where y 1  is a random integer. A and B now compute the key K=α xy  ⊕α x .sbsp.1 y .sbsp.1. 
     Another drawback of the first protocol is that if an adversary learns the private random integer x of A, then the adversary can deduce the long-term private key a of party A from the equation s A  =x-r A  aα a  mod p-1. This drawback is primarily theoretical in nature since a well designed implementation of the protocol will prevent the private integers from being disclosed. 
     Second Protocol 
     A second protocol set out below addresses these two drawbacks. 
     1. A picks a random integer x,1≦x≦p-2, and computes (p B ) x ,α x  and a signature s A  =x+aα a  (p B ) x  mod (p-1). A sends {α x ,s A ,text A  } to B. 
     2. B picks a random integer y,1≦y≦p-2, and computes (p A ) y ,α y  and a signature s B  =y+bα b  (p A ) y  mod (p-1). B sends {α y ,s B ,text B  } to A. 
     3. A computes (α y ) a  and verifies that α S .sbsp.B (p B )  - α.spsb.b.sup.α.spsb.αy =α y . A then computes session key K=α ay  (p B ) x . 
     4. B computes (α x ) b  and verifies that α S .sbsp.A (p A ) - α.spsb.α.sup.α.spsb.bx =α x . A then computes session key K=α bx  (p A ) y . 
     The second protocol improves upon the first protocol in the sense that it offers perfect forward secrecy. While it is still the case that disclosure of a private random integer x allows an adversary to learn the private key a, this will not be a problem in practice because A can destroy x as soon as she uses it in step 1 of the protocol. 
     If A does not have an authenticated copy of B&#39;s public key then B has to transmit a certified copy of his key to B at the beginning of the protocol. In this case, the second protocol is a three-pass protocol. 
     The quantity s A  serves as A&#39;s signature on the value α x . This signature has the novel property that it can only be verified by party B. This idea can be generalized to all ElGamal-like signatures schemes. 
     The first and second protocols above can be modified to improve the bandwidth requirements and computational efficiency of the key agreement. The modified protocols are described below as Protocol 1&#39; and Protocol 2&#39;. In each case, A and B will share the common key α S .sbsp.A S .sbsp.B. 
     Protocol 1&#39; 
     1. A picks a random integer x, 1≦x≦p-2, and computes r A  =α a  and s A  =x+r A  aα a  mod (p-1). A sends {r A ,text A  } to B. 
     2. B picks a random integer y, 1≦y≦p-2, and computes r B  =α y  and s B  =y+r B  bα b  mod (p-1). B sends {r B ,text B  } to A. 
     3. A computes K=(r B  (p B ) r .sbsp.B.sup.α.spsp.b) S   A  which is equivalent to α S .sbsp.A S .sbsp.B. 
     4. B computes K=(r A  (p A ) r .sbsp.A.sup.α.spsp.α) S .sbsp.B which is also equivalent to α S .sbsp.A S .sbsp.B. 
     A and B thus share the common key but it will be noted that the signatures s A  and s B  need not be transmitted. 
     Protocol 2&#39; 
     1. A picks a random integer x, 1≦x≦p-2, and computes (p B ) x , α x  and s A  =x+a(p B ) x  mod (p-1). A sends {α x ,text A  } to B. 
     2. B picks a random integer y, 1≦y≦p-2, and computes (p A ) y , α y  and s B  =y+b(p A ) y  mod (p-1). B sends {a y ,text B  } to A. 
     3. A computes (α y ) a  and K=(α y  (p B ).sup.α.spsb.b.sup.α.spsb.αy) S .sbsp.A. i.e. to α S .sbsp.A S .sbsp.B. 
     4. B computes (α x ) b  and K=(α x  (p A ).sup.α.spsb.α.sup.α.spsb.bx) S .sbsp.B. i.e. to α S .sbsp.A S .sbsp.B. 
     Again therefore the transmission of s A  and s B  is avoided. 
     A further protocol is available for parties A and B to establish a session key K. 
     Third Protocol 
     The system parameters for this protocol are a prime number p and a generator α for the multiplicative group Z p   * . User A has private key a and public key p A  =α a . User B has private key b and public key p B  =α b . 
     1. A picks two random integers x,x 1 ,1≦x,x 1  ≦p-2, and computes r x .sbsb.1 =α x .sbsp.1, r A  =α x  and (r A ) r .sbsp.x.sbsp.1, then computes a signature s A  =xr x .sbsb.1 -(r A ) r .sbsp.x.sbsp.1 aα.sup.α mod (p-1). A sends {r A ,s A ,α x .sbsp.1,text A  } to B. 
     2. B picks two random integers y,y 1 ,1≦y,y 1  ≦p-2, and computes r y .sbsb.1 =α y .sbsp.1,r B  =α y  and (r B ) r .sbsp.y.sbsp.1, then computes a signature s B  =yr y .sbsb.1-(r B ) r .sbsp.y.sbsp.1 b mod (p-1). B sends {r B ,s B ,α y .sbsp.1, text B  } to A. 
     3. A computes α s .sbsp.B (p B ).sup.(r.sbsp.B.sup.) r .sbsp.y.sbsp.1 and verifies that this is equal to (r B ) r .sbsp.y.sbsp.1. A computes session key K=(α y .sbsp.1) x .sbsp.1 =α x .sbsp.1 y .sbsp.1. 
     4. B computes α S .sbsp.A (p A ).sup.(r.sbsp.A.sup.) r .sbsp.x.sbsp.1 and verifies that this is equal to (r A ) r .sbsp.x.sbsp.1. B computes session key K=(α x .sbsp.1) y .sbsp.1 =α x .sbsp.1 y .sbsp.1. In these protocols, (r A ,s A ) can be thought of as the signature of r x .sbsb.1 with the property that only A can sign the message r x .sbsb.1. 
     Key Transport Protocol 
     The protocols described above permit the establishment and authentication of a session key K. It is also desirable to establish a protocol in which permits A to transport a session key K to party B. Such a protocol is exemplified below. 
     1. A picks a random integer x,1≦x≦p-2, and computes r A  =α x  and a signature s A  =x-r A  aα a  mod (p-1). A computes session key K=(p B ) x  and sends {r A ,s A ,text A  } to B. 
     2. B computes α S .sbsp.A (p A ) r .sbsp.A.sup.α.spsb.α and verifies that this quantity is equal to r A . B computes session key K=(r A ) b . 
     Modified Key Transport Protocol 
     The above protocol may be modified to reduce the bandwidth by avoiding the need to transmit the signature s A  as follows: 
     1. A picks a random integer x, 1≦x≦p-2, and computes r A  =α x  and s A  =x-r A  aα a  mod (p-1). A computes K=(p B ) S .sbsp.A and sends {r A ,text A  } to B. 
     2. B computes K=(α x  (p A ) -r .sbsp.A.sup.α.spsb.α) b  =α bs .sbsp.A. 
     All one-pass key transport protocols have the following problem of replay. Suppose that a one-pass key transport protocol is used to transmit a session key K from A to B as well as some text encrypted with the session key K. Suppose that E records the transmission from A to B. If E can at a later time gain access to B&#39;s decryption machine (but not the internal contents of the machine, such as B&#39;s private key), then, by replaying the transmission to the machine, E can recover the original text. (In this scenario, E does not learn the session key K.). 
     This replay attack can be foiled by usual methods, such as the use of timestamps. There are, however, some practical situations when B has limited computational resources, in which it is more suitable at the beginning of each session, for B to transmit a random bit string k to A. The session key that is used to encrypt the text is then k⊕K, i.e. k XOR&#39;d with K. 
     The signing equation s A  =x-r A  aα a  where r A  =α x  in protocol 1, and the key transportation protocols; r A  =α xb  in protocol 2, can be replaced with several variants. Some of them are: 
     r A  =s A  x+Z 
     s A  =xα a  +ar A   
     s A  =xr A  +aα a   
     1=ar A  +XS A   
     All the protocols discussed above have been described in the setting of the multiplicative group Z p   * . However, they can all be easily modified to work in any finite group in which the discrete logarithm problem appears intractable. Suitable choices include the multiplicative group of a finite field (in particular the finite field GF(2 n ), subgroups of Z p   *  of order q, and the group of points on an elliptic curve defined over a finite field. In each case an appropriate generator α will be used to define the public keys. 
     The protocols discussed above can also be modified in a straightforward way to handle the situation when each user picks their own system parameters p and α(or analogous parameters if a group other than Z p   *  is used). 
     In the above protocols, a signature component of the general form s A  =x+r a  ·a·α a  has been used. 
     The protocols may be modified to use a simpler signature component of the general form s A  =x+r a  ·a without jeopardizing the security. 
     Examples of such protocols will be described below using the same notation although it will be understood that the protocols could be expressed in alternative notation if preferred. 
     Protocol 1&#34; 
     This protocol will be described using an implementation in the multiplicative group Z p   *  with the following notation: 
     p is a prime number, 
     α is a generator of Z p   * , 
     a and b are party A&#39;s and B&#39;s respective long-term private key, 
     α a  mod p is party A&#39;s long-term private key, 
     α b  mod p is party B&#39;s long-term private key, 
     x is a random integer selected by A as a short-term private key, 
     r a  =α x  mod p is party A&#39;s short-term public key, 
     y is a random integer selected by B as a short-term private key, 
     r b  =α y  mod p is party B&#39;s short-term public key, 
     r a   is an integer derived from r a , 
     r b   is an integer derived from r b . 
     To implement the protocol, 
     1. A sends r a  to B. 
     2. B sends r B  to A. 
     3. A computes s A  =x+a mod r a  . a mod(p-1) 
     4. A computes the session key K where 
     K=(α y  (α b ) r .sbsp.b ) S .sbsp.A mod p. 
     5. B computes S B  =y+r b  . b mod (p-1) 
     6. B computes the session key K where 
     K=(α x  (α a ) ra  ) S .sbsp.B mod p. 
     7. The shared secret is α S .sbsp.A S .sbsp.B mod p. 
     In this protocol, the bandwidth requirements are again reduced but the signature components combine the short and long-term keys of the correspondent to inhibit an attack by an interloper. 
     The above protocol may also be implemented using a subgroup of Z p   * . In this case, q will be a prime divisor of (p-1) and g will be an element of order p in Z p   * . 
     A&#39;s and B&#39;s public keys will be of the form g a ,g b  respectively and the short-term keys r a ,r b  will be of the form g x ,g y . 
     The signature components s A ,s B  are computed mod q and the session key K computed mod q as before. The shared secret is then g S .sbsp.A S .sbsp.B mod p. 
     As noted above, the protocols may be implemented in groups other than Z p   *  and a particularly robust group is the group of points on an elliptic curve over a finite field. An example of such an implementation is set out below as protocol 1&#39;&#34;. 
     Protocol 1&#39;&#34; 
     The following notation is used: 
     E is an elliptic curve defined over Fq, 
     P is a point of prime order n in E(Fq), 
     da (1≦da≦n-1) is party A&#39;s long-term private key, 
     db (1≦db≦n-1) is party B&#39;s long-term private key, 
     Qa=daP is party A&#39;s long-term public key, 
     Qb=dbP is party B&#39;s long-term public key, 
     k (1≦k≦n-1) is party A&#39;s short-term private key, 
     r a  =kP is party A&#39;s short-term public key, 
     m (1≦m≦n-1) is party B&#39;s short-term private key, 
     r b  =mP is party B&#39;s short-term public key, 
     r a  and r b   respectively are bit strings, for example the 80 least significant bits of the x co-ordinate of r a  and r b . 
     To implement the protocol: 
     1. A sends r a  to B. 
     2. B sends r b  to A. 
     3. A computes s A  =S A  =(k+r a  .d a ) mod n. 
     4. A computes the session key K where K=S A  (r b  +r b  Q b ) 
     5. B computes s B  =S B  =(m+r b  d b ) mod n. 
     6. B computes the session key K where K=S b  (r a  +r a  Q a ). 
     7. The shared secret is s a  s b  P. 
     Again, it will be noted that it is not necessary to send the signature components s A ,s B  between the correspondent but the short and long-term keys of the correspondents are combined by the form of the components. (It will be appreciated that the notation m has been substituted for x,y in the previous examples to avoid confusion with the co-ordinate (x,y) of the points on the curve.