System and method for message authentication in a non-malleable public-key cryptosystem

Abstract: A method is provided for authentication of encrypted messages (M). A non-malleable public-key encryption technique is employed, so that an eavesdropper (B) cannot employ an encrypted message (M), previously overheard, to generate a message which, when sent to a recipient (R), which would pass as a message originating from a valid sender (S). In a preferred embodiment, a protocol is provided in which, in response to a message authentication request (req) from a sender, a recipient (R) sends the sender (S) a string (st), encrypted according to the sender's non-malleable public key (Es). The sender (S) decrypts the string using its private key, and sends the recipient (R) a message (Auth (M, ST)) which is a function (Auth) of the string (St) and the message (M) to be authenticated. Because of the non-malleability of the public keys, an eavesdropper cannot impersonate the sender (S) or the recipient (R) and produce a disinformation message which would nevertheless contain the correct authorization string.

Description: Field of the invention The present invention generally relates to the field of encryption of messages for transmission between communication nodes. More specifically, the invention relates to a public-key method for authentication of the source of an encrypted message. Background of the Invention Communication systems are often used for communicating confidential messages from a sender to a receiver. Optimally, confidentiality is maintained through physical security, i.e., by communicating a confidential message in such a way that no one other than the sender or receiver has access to the message, such as in a sealed, hand-carried package, over a cable, or by means of some other closed communication medium. Electronic communication media, such as the public telephone network or wireless transmission, have the advantage of speed and convenience. However, these media do not provide physical security. That is, it is possible for a message sent through these communication media to be overheard by parties from whom the content of the message is to be kept secret. Therefore, a great deal of attention has been given the problem of maintaining a level of secrecy of messages which is comparable to physical security. Much of this attention has manifested itself in encryption technology. Various attributes of a cryptosystem influence how well the system maintains a message in confidence. In particular, a cryptosystem should not be malleable. The property of malleability is discussed in connection with cryptosystems in Dolev, Dwork, and Naor, "Non-Malleable Cryptography," ACM 089791-397-3/91/004/0542, pp. 542-52 (1991). To be non-malleable, a cryptosystem has two attributes. First, the cryptosystem is semantically secure. That is, if any given information about the plaintext is computable from the ciphertext, then that given information is computable without the ciphertext. Second, given a first ciphertext, it is impossible, or computationally infeasible, to generate a second ciphertext such that the plaintexts corresponding with the first and second ciphertexts are related. The disadvantage of malleability is illustrated as follows: When a set of related messages are encrypted using an algebraic cryptosystem, the resultant encrypted messages sometimes have a corresponding (not necessarily identical) relationship. For instance, if a set of messages have close numerical values in an ascending numerical series, some malleable encryption keys encrypt the messages into a set of encrypted messages which also have close values in an ascending series. While the message may still be difficult to decrypt, an eavesdropper can still make illicit use of the encrypted message. For example, consider a contract bidding scenario. Suppose that a municipality has voted to construct a new school, has chosen a design, and advertises that construction companies are invited to bid for the contract by submitting bids encrypted using a malleable public key E. Company A encrypts a bid of $1,500,000 using E, and sends the bid over an insecure line. Company B receives the bid, but cannot decrypt the bid because it does not have the municipality's private decrypting key. However, given the encrypted Company A bid, Company B may be able to produce a message of its own which, when decrypted using the municipality's decrypting key, results in a bid lower than that of Company A. The cryptosystem is malleable if, given the encrypted bid from Company A, Company B has a likelihood of producing such a message which is greater than its likelihood of doing so would be if Company B did not have the encrypted Company A bid. Company B can thus slightly underbid Company A and win the contract, without necessarily knowing what Company A's bid was, or even what its own decrypted bid will be. Clearly, Company A's interests are served by employing a non-malleable cryptosystem, so that Company B is prevented from generating a bid in this fashion. This scenario illustrates the difference between physical security, in which Company has no access even to Company A's encrypted bit, and secrecy, produced by encrypting messages. In some contexts, such as this scenario, mere secrecy through the use of a malleable cryptosystem is not a satisfactory substitute for physical security. A particular area in which secrecy desirably should match physical security is the area of authentication of the source of an encrypted message. Desirably, an authentication scheme should have two attributes. First, the scheme should be secure against attack from an interloper. That is, an interloper should not be able to send a disinformation to a recipient and authenticate the disinformation message as being a valid message sent from a legitimate sender. If no reliable message authentication scheme is in place, then a message received by a recipient R and bearing the source address of a sender S could in fact have been sent by an interloper B. Thus, B could send disinformation about S to R. The second desirable attribute of an authentication scheme is that it should be possible for the recipient R to convince a third party C that the message was in fact sent from the sender S, and not from an imposter B. An example of a scenario in which authentication is desirable is a scenario called the "cheesmaster attack," or "mafia scam." The name is derived from a chess scenario in which a player simultaneously plays white against one grandmaster and black against another. The player effectively plays the two grandmasters against each other by duplicating the moves made by each grandmaster against the other. The chessmaster attack is illustrated in a scenario called "Identification: Friend or Foe", or IFF. In one possible IFF scenario, a friendly aircraft F and a friendly ground site G sub F communicate, and an enemy aircraft N, with the cooperation of an enemy ground site G sub N, seek to communicate disinformation to the friendly aircraft and ground site by impersonating them. A conventional attempt to establish secure communications is to give the friendly aircraft some secret information s, known only to the friendly ground site. The friendly ground site selects one of a large number of challenges q, and sends q to the friendly aircraft. The friendly aircraft responds with a function F of s and q which is computationally infeasible to calculate without s. Of course, the enemy aircraft may also receive the function. If, later, the friendly ground station challenges the enemy aircraft with a different challenge q', then the required response, a function of s and q', cannot easily be produced, given only q and F(s,q). However, in a malleable cryptosystem, this communication protocol is subject to attack, using a mafia scam technique. Consider the following sequence of messages, in which the expression following the colon is the mesage ( i.e., a challenge or a response) sent from the first party to the second party: G f → N :q N → G n :q G n → F :q In this sequence, an enemy plane and ground site, working together, interpose themselves between the friendly ground site and the friendly aircraft, in the manner of a mafia scam. In the fourth step, the friendly aircraft F provides the enemy ground site with the encrypted response f(s,q). Then, in the sixth step, the enemy aircraft sends the encrypted response to the friendly ground site, thereby responding correctly to the challenge from the friendly ground site. It is possible for the friendly ground site to defeat the enemy's copying by including some special locater information, such as the location of the friendly plane and a time stamp, in the challenge, designated q'. As a result, the enemy plane would need to transmit f(s, q') rather than f(s,q), so mere copying would be insufficient to attack the friendly communication system. However, the two challenges q and q' are the same, except for the location and the time stamp. In a malleable cryptosystem, f(s,q) and f(s,q') are likely to be similar. Thus, given q, q', and f(s,q), it may be possible for the enemy to obtain f(s,q') and defeat the friendly cryptosystem. Accordingly, there is a need for a cryptosyetem which facilitates the authentication of secret messages, which is not malleable, and therefore not vulnerable to the sort of attacks described above. EP-A-0 522 473 already describes a cryptographic identity verification system which has as its object the prevention of forging of verification transcripts constructed during communication between a prover and verifier. The system operates under the direction of a trusted centre such as a credit card company that issues to the prover an identifier ID and secret information S. The prover generates an initial message X that is transmitted to the verifier. The verifier generates a random message M and an enquiry E from the initial message X and the random message M. The enquiry E is sent to the prover which checks that the enquiry E has been correctly generated from the initial message X and the random message M. The prover generates from the enquiry E and the secret information S a response Y related to the initial message X. The verifier checks whether the response Y is valid according to the enquiry E, the initial message X and the identifier ID and stores a transcript comprising the identifier ID, the initial message X, the random message M and the response Y. This system is not a non-malleable public key encryption system and does not serve to combat a mafia scam attack. Summary of the Invention Therefore, it is an object of the invention to provide a method and system for authenticating messages which is non-malleable. To achieve these and other objectives, there is provided in accordance with the invention a method and system in which a public key cryptosystem, employing non-malleable public and private keys, is used for message authentication. A message authentication protocol is employed which, used with the non-malleable public key cryptosystem, provides authentication which is secure from tampering from an eavesdropper/imposter. There is now provided, according to the present invention, an encryption method for authentication of a data message sent from a first communication device S to a second communication device R, the method comprising the steps of: sending by the first communication device S to the second communication device R, an authentication request message; responding by the second communication device R to an authentication request message which was apparently sent by the first communication device S, said first device apparently having sent the data message, the step of responding including sending a response message; generating, by said first device S, an authentication message; sending, by said first device S, the generated authentication message; generating, by said second device, the authentication message; and verifying, by said second device R, that the received authentication message matches the authentication message generated by the second device R; characterised in that; the method is a non-malleable public-key encryption method; the step of responding includes sending the response message encrypted with said first device's non-malleable public encryption key; the method includes a step of decrypting by said first device S, using its private encryption key, said encrypted response message to obtain the response message; and the authentication message generated by said first device S is a function of the data message and the decrypted response message and is a function agreed between the first and second devices. There is further provided, in accordance with the present invention, an encryption system for authentication of a data message sent from a first communication device S in the system to a second communication device R in the system, the first communication device comprising means for sending to the second communication device R, an authentication request message; the second communication device R comprising means for responding to an authentication request message which was apparently sent by the first communication device S, said first device apparently having sent the data message, the means for responding including means for sending a response message; the first device S comprising means for generating an authentication message and sending the generated authentication message to the second device R; and the said second device R comprising means for generating the authentication message and for verifying that the received authentication message matches the authentication message generated in the second device R; characterised in that; the system is a non-malleable public-key encryption system; the means for responding to an authentication request message includes means for sending the response message encrypted with said first device's non-malleable public encryption key; the first device S comprises means for decrypting, using its private encryption key, said encrypted response message to obtain the response message; and the authentication message generated by said first device S is a function of the data message and the decrypted response message. While the invention is primarily disclosed as a method, it will be understood by a person of ordinary skill in the art that an apparatus, such as a conventional data processor, including a CPU, memory, I/O, program storage, a connecting bus, and other appropriate components, could be programmed or otherwise designed to facilitate the practice of the method of the invention. Such a processor would include appropriate program means for executing the method of the invention. Brief Description of the Drawings FIG. 1 is a system block diagram showing two communication devices, s and R, and an interloper B. FIG. 2 is a flowchart showing an exchange of messages for an authentication sequence according to the method of the invention. FIG. 3 is a flowchart showing an exchange of messages for an authentication sequence between a sender and a recipient, in which a third party attempts to authenticate a message which did not originate from the sender. Description of the Preferred Embodiments The following discussion is applicable to any communication system in which a sender sends a message to a recipient, in which the origin of the message is to be authenticated, and in which an interloper, attempting to send the recipient a disinformation message perportedly from the sender, is to be prevented from doing so. The precise nature of the communication medium and of the sender, recipient, and interloper are not essential to the invention. FIG. 1 is a block diagram representation which schematically shows such a system, including a sender S, a recipient R, and an interloper B. The technique for message authentication according to the invention includes the use of a public key cryptosystem. A public key cryptosystem was first presented in Diffie and Hellman, "New Directions in Cryptography," I.E.E.E. Transactions on Information Theory, Vol. IT-22, No. 6, pp. 644-54 (Nov. 1976). In apublic-key cryptosystem operable by a plurality of communication nodes, for each node A, there is a public encryption key E sub A which is known to all of the other nodes. Each public encryption key E sub A describes a procedure for encrypting messages to be sent to the respective node A. For each public encryption key, there is a corresponding private decrypting key known only to the respective node, and which cannot be deduced, given the public encryption key. Therefore, if a message is encoded using the public encryption key E sub A then, although any other node can receive the encrypted message, only the node A can decrypt it. Even the sending node cannot decrypt the message, once it has been encrypted. Public-key cryptosystems first proposed in Diffie et al. are based on the difficulty of computing logarithms mod q, where q is a prime number of elements making up a field. For a quantity representable as a b bit number, where q is a prime number slightly less than 2 sup b , encryption or decryption using keys as described in Diffie et al. requires exponentiation that takes at most 2b multiplications mod q. However, decrypting a ciphertext without the key requires taking logarithms with 2(b/2) operations. Thus, cryptanalysis requires a computational effort which grows exponentially, relative to legitimate encryption or decryption by parties who know the respective keys. However, because of the dependence on modulo arithmetic, ciphertexts corresponding with ascending plaintexts are piecewise ascending. Thus, the conventional Diffie et al. public key cryptography is malleable, and subject to the attacks described above. In accordance with the invention, this drawback is overcome through the use of a non-malleable cryptosystem. While any non-malleable cryptosystem may be employed in accordance with the invention, a preferred non-malleable cryptosystem is that given in Section 4 of Dolev et al., "Non-Malleable Cryptography," cited in the Background. Diffie et al. discusses the problem of authentication, and suggests a one-way authentication system in which a sender "deciphers" the message to be sent, using the sender's private key. The recipient then uses the sender's public key to "encrypt" the "decrypted" message to recover the message itself. Since only the sender could have used the sender's private key, recovering the message using the sender's public key is proof that the sender sent the message. Given a suitable non-malleable cryptosystem, the method of the invention works as set forth in the flowchart of FIG. 2. The steps of FIG. 2 show communication traffic between a sender S and a recipient R. The objective is to authenticate a data message m, which is to be sent from S to R. In a first step 2, the sender S sends an authorization request message which indicates that S desires to authenticate the data message m. The authorization request message may include the data message m itself, or may be a command message in accordance with a suitable command format or protocol in use with the communication system supporting the sender S and the receiver R. In this latter case, it is assumed that the data message m itself is sent separately. In effect, the authorization request message is a statement, "I am S, and I wish to authenticate a data message M which I am sending to you." In step 4, the receiver R responds by sending a response message, preferably a random string st, encrypted using the sender's public key E sub s . The string st is preferably chosen at random, or may be base on some predetermined formula. For instance, the string st might be related to a date or time stamp. Finally, in step 6, the sender S sends the recipient R an authorization message, from which the recipient R is able to establish that the identity of the sender of the data message m is, in fact, the sender S. In a preferred embodiment of the invention, the authorization message is in the form Auth(m,st), where Auth is a function mutually agreed upon between the sender S and the receiver R. Auth is preferably an easily computed function which takes as arguments a message, such as the message m to be authenticated, and a string, such as st. Auth produces an output, preferably in the form of a short string. It is that output, or short string, which is actually sent from the sender S to the recipient R. For any two strings st and st', the probability that Auth(m,st) equals Auth(m,st') should be low. Additionally, it is preferable that, given m, st, and the output or short string, the recipient R can easily verify that Auth(m,st) equals the output sent from S to R as the authorization message. Thus, when R verifies that the authorization message it received matches the Auth function of the data message m, which R has already received, and st, the string which R sent to S, R thereby verifies that the identity of the sender of the data message m is in fact S. It is preferable, though not essential to the invention, that the recipient R's public key be used by the sender S to encrypt the authorization request message (assuming that the encrypted data message m was sent separately), and the authorization message Auth(m,st). To foil an attempt by an imposter B to impersonate the sender S, the public encryption key E s must be non-malleable. Otherwise, this authorization sequence would be subject to attack, for instance from the mafia scam. Such a scam would work as shown in the flowchart of FIG. 3. Assume that S sends a data message m to R, and that the imposter B wants to send a disinformation message m' to R im place of S's message m, and to authenticate m' as having come from S. The disinformation message m' has some relationship to the data message m, i.e., m' = f(m). Because, for the purpose of this illustration, the sender S's public key E s is malleable, it is reasonably easy for B to calculate an E s (st), given E s (st '), m, and m', such that there is a relationship between st and st'. The mafia scam exchange goes as shown in FIG. 3. In step 8, the sender S sends an authentication request, directed to the recipient R, to authenticate a data message m. The request is intercepted by B. In step 10, B sends R an authentication request, identifying itself as S, and requesting authentication of a disinformation message m', which has a given relationship to m. R responds to B's request, in step 12, by sending a string st', encrypted using S's public key. B cannot decrypt the encrypted string. If, in accordance with the invention, S's public key is non-malleable (step 13), B's attempt to authenticate m' does not get beyond this point. B's attempt is frustrated, and the method of the invention has successfully maintained communication security (step 14). However, if S's public key is malleable, B can manipulate E sub s (st') to produce an encrypted message E s (st), where Auth(m,st) = g(Auth(m,st)), for some easily computable function g. In step 15, B sends E s (st) to S. S then attempts to complete the authorization by sending Auth(m,st) in step 16. B again intercepts this message, applies the function g to it to produce Auth(m',st'), and, in step 18, sends the latter to R. R then believes that S has authenticated the disinformation message m', and B has succeeded in its mafia scam. However, the success of the mafia scam depends on the malleability of S's public key E s . If, in accordance with the invention, the public key is not malleable, B is unable to generate E s (st) from E s (st'), and the mafia scam fails. Thus, the invention advantageously protects this authentication sequence from attack.

Claims: An encryption method for authentication of a data message sent from a first communication device S to a second communication device R, the method comprising the steps of: sending (2) by the first communication device S to the second communication device R, an authentication request message; responding (4) by the second communication device R to an authentication request message which was apparently sent by the first communication device S, said first device apparently having sent the data message, the step of responding including sending a response message; generating, by said first device S, an authentication message; sending (6), by said first device S, the generated authentication message; generating, by said second device, the authentication message, and verifying, by said second device R, that the received authentication message matches the authentication message generated by the second device R; characterised in that ; the method is a non-malleable public-key encryption method; the step of responding (4) includes sending the response message encrypted with said first device's non-malleable public encryption key; the method includes a step of decrypting by said first device S, using its private encryption key, said encrypted response message to obtain the response message; and the authentication message generated by said first device S is a function of the data message and the decrypted response message and is a function mutually agreed upon between the first and second devices. A method as claimed in claim 1, wherein the response message is a random string. A method as claimed in claim 1 or 2, wherein the function used in generating the authentication message is such that the probability is low that for any two different string arguments, the function produces the same output. An encryption system for authentication of a data message sent from a first communication device S in the system to a second communication device R in the system, the first communication device comprising means for sending (2) to the second communication device R, an authentication request message; the second communication device R comprising means for responding (4) to an authentication request message which was apparently sent by the first communication device S, said first device apparently having sent the data message, the means for responding including means for sending a response message; the first device S comprising means for generating an authentication message and sending (6) the generated authentication message to the second device R; and the said second device R comprising means for generating the authentication message and for verifying that the received authentication message matches the authentication message generated in the second device R; characterised in that ; the system is a non-malleable public-key encryption system; the means for responding to an authentication request message includes means for sending (4) the response message encrypted with said first device's non-malleable public encryption key; the first device S comprises means for decrypting, using its private encryption key, said encrypted response message to obtain the response message; and the authentication message generated by said first device S is a function of the data message and the decrypted response message. A system as claimed in claim 4, wherein the response message is a random string. A system as claimed in claim 4 or 5, wherein the function used in said means for generating is such that the probability is low that for any two string arguments, the function produces the same output.

Inventors: DWORK CYNTHIA, NAOR SIMEON, DWORK, CYNTHIA, NAOR, SIMEON
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1994
Main classification: H04L9
IPC codes: G09C1, H04L9, G06F21