The present invention relates to a cryptographic method and apparatus; in particular, the present invention relates to an identifier-based cryptographic method and apparatus.
As is well known to persons skilled in the art, in “identifier-based” cryptographic methods the encryption key used to encrypt a message is based on a sender-chosen string and public data, the corresponding decryption key being computed, potentially subsequent to message encryption, using the sender-chosen string and private data associated with the public data. Frequently, the sender-chosen string serves to “identify” the intended message recipient and this has given rise to the use of the label “identifier-based” or “identity-based” generally for these cryptographic methods. However, depending on the application to which such a cryptographic method is put, the sender-chosen string may serve a different purpose to that of identifying the intended recipient and, indeed, may be an arbitrary string having no other purpose than to form the basis of the encryption key. Accordingly, the use of the term “identifier-based” herein in relation to cryptographic methods and apparatus is to be understood simply as implying that the encryption key is based on a sender-chosen, cryptographically unconstrained, string whether or not the string serves to identify the intended recipient, and that the corresponding decryption key can be subsequently computed from the string. Furthermore, as used herein the term “string” is simply intended to imply an ordered series of bits whether derived from a character string, a serialized image bit map, a digitized sound signal, or any other data source.
Identifier-Based Encryption (IBE) is an emerging cryptographic schema A number of IBE cryptographic methods are known, including:
Generally, in IB encryption/decryption methods, a trusted party carries out one or more actions (such as identity checking) in accordance with information in the sender-chosen string, before enabling a recipient to recover a message encrypted by a message sender. Usually, the trusted party will generate an IB decryption key and provide it to the recipient for the latter to use in decrypting the encrypted message. However, it is also possible to provide IB encryption/decryption methods in which the trusted party must itself carry out the decryption since it involves knowledge of a secret belonging to the trusted party as well as use of the IB decryption key. This is the case for the RSA-based IB method described in U.S. Pat. No. 6,275,936 where the decryption exponent is dynamically computed from the encryption exponent, the latter being a hash of the sender-chosen string. A potential disadvantage of the trusted party carrying out message decryption is that it risks compromising the recipient's privacy. In the afore-mentioned U.S. patent, this potential disadvantage is overcome by the recipient blinding the encrypted message before passing it to the trusted party (a decryption box) and then un-blinding the returned decrypted, but still blinded, message.
It is an object of the present invention to provide novel identifier-based cryptographic methods and systems.
According to a first aspect of the present invention, there is provided a cryptographic method comprising a first party:
In preferred embodiments of the invention, the foregoing method is used to provide an identifier-based form of the Elgamal encryption/decryption system. The ElGamal cryptosystem is described in the paper: “A public key cryptosystem and a signature scheme based on discrete logarithins” (IEEE Transactions on Information Theory, Vol. IT-31 No. 4 July 1985, Taher ElGamal) and is itself based on the well-known Diffie-Hellman key distribution scheme.
The identifier-based encryption/decryption methods provided by preferred embodiments of the present invention present a different distribution of computational load to other identifier-based systems (such as the RSA-based system described in the above-referenced U.S. patent) and in appropriate circumstances offers performance advantages over the prior art.
According to a second aspect of the present invention, there is provided a cryptographic method comprising a sender of a message m effecting steps of:
According to a third aspect of the present invention, there is provided cryptographic apparatus comprising a first computing entity comprising:
According to a fourth aspect of the present invention, there is provided a trusted-party entity comprising:
Embodiments of the invention will now be described, by way of non-limiting example, with reference to the accompanying diagrammatic drawings, in which:
FIG. 1 is a diagram illustrating the operational steps of the prior art ElGamal public key encryption/decryption method;
FIG. 2 is a diagram illustrating the operational steps of an identifier-based cryptographic method embodying the invention; and
FIG. 3 is a diagram similar to that of FIG. 2 but illustrating the inclusion of addition blinding and un-blinding operational steps.
The cryptographic methods and apparatus described below with respect to FIGS. 1 to 3 involve two or three parties, namely a message sender A acting through computing entity 10 , a message receiver B acting through computing entity 20 , and a trusted authority TA acting through computing entity 50 (this latter entity is not present in the prior art method and apparatus illustrated in FIG. 1). The computing entities 10 , 20 and 50 are typically based around program-controlled processors though some or all of the cryptographic functions may be implemented in dedicated hardware. The entities 10 , 20 and 50 inter-communicate, for example, via the internet or other computer network though it is also possible that two or all three entities actually reside on the same computing platform. For convenience, the following description is given in terms of the parties A, B and TA, it being understood that these parties act through their respective computing entities. It is also to be understood that the message sent by the message sender to the message receiver can comprise any content and can, for example, simply be a symmetric cryptographic key.
As preferred embodiments of the invention are based on the ElGamal encryption/decryption scheme, this latter scheme will first be briefly reviewed with reference to FIG. 1 in order to facilitate an understanding of the subsequently-described embodiments of the present invention. It is, however, to be understood that part of the contribution made by the inventors of the present invention is the appreciation of the possibilities offered by the ElGamal scheme in respect of IB cryptography as well as how these possibilities can be realised in practice.
Initial Set Up Phase
As will be appreciated by persons skilled in the art, the sender A and recipient B can be considered as having effected a Diffie-Hellman type key exchange in that the quantity y r mod p computed by the sender A is equivalent to the quantity h x mod p computed by the recipient, (both these quantities corresponding to g r.x mod p, the Diffie-Hellman key distributed between A and B). However, it is also possible to consider the process in terms of B having a public key (g, p, y) and a private key x, the sender A using B's public key to encrypt the message m and B using its private key to recover the message.
Turning now to a consideration of embodiments of the present invention, in the FIG. 2 embodiment the public/private keys belong to the trusted authority TA which is arranged to decrypt a message encrypted by the sender A. The encryption process effected by the sender A involves the use of a sender-chosen “identifier” string that comprises information concerning one or more actions (typically the checking of conditions indicated in the string) to be effected by the trusted authority before it decrypts the message, or before it releases the decrypted message to the recipient B. The string is provided to the trusted party and is a required component of the decryption process whereby any change in the string will result in a failure to correctly decrypt the message. The detailed steps of the FIG. 2 method are set out below together with indications of typical bit sizes of the important quantities involved.
Initial Set Up Phase
The transmissions are preferably integrity protected in any suitable manner.
With z and r both 160 bits, the main computational load on the sender is one 160-bit exponentiation and one 320-bit exponentiation (assuming steps 8 and 11 are combined), whilst the main computational load on the TA is one 320-bit exponentiation and one inversion.
It will be appreciated by persons skilled in the art that g should be chosen randomly but such that:
It should be noted that the multiplication effected in step 11 can be replaced by any modulo-p invertible operation for combining y r.z and m (the operation being inverted in step 16 ). Thus, for example, J can be computed as:
As regards the contents of the string STR chosen by the sender, as already indicated this string may be any string though in many cases restrictions will be placed on the string—for example, the string STR may be required to comply with a particular XML schema.
Generally, the string STR is used to convey to the trusted authority information concerning actions to be taken by the trusted authority when it receives the encrypted message for decryption. The information in the string STR may relate to actions to be taken by the trusted authority that do not affect message decryption—for example, the trusted authority TA may be required to send a message to the message sender A at the time the TA decrypts the message concerned. However, the information in the string STR will frequently specify one or more conditions to be checked by the trusted authority as being satisfied before the trusted authority decrypts the related encrypted message (or before returning the corresponding decrypted message to the recipient B concerned).
For example, the string STR may comprise a recipient identity condition identifying a specific intended message recipient; in this case, the trusted authority carries out an authentication process with the recipient B presenting the related message for decryption to check that the recipient concerned meets the recipient-identity condition.
Rather than identifying an intended recipient as a particular individual, the string STR may comprise one or more conditions specifying one or more non-identity attributes that the recipient must possess; for example, a condition may specify that a recipient must have a certain credit rating. Again, it is the responsibility of the trusted authority to check out this condition before producing the decrypted message for a recipient presenting the encrypted message for decryption.
The string STR may additionally or alternatively comprise one or more conditions unrelated to an attribute of the intended recipient; for example, a condition may be included that the message concerned is not to be decrypted before a particular date or time.
Whatever the conditions relate to, the string STR may directly set out the or each condition or may comprises one or more condition identifiers specifying corresponding predetermined condition known to the trusted authority (in the latter case, the trusted authority uses the or each condition identifier to look up the corresponding condition to be checked).
In overview of the FIG. 2 method, like the prior art method of FIG. 1, it is possible to consider what is happening in terms of the Diffie-Hellman key distribution process. More particularly, the actions of the sender can be viewed as equivalent to:
Similarly, the actions of the TA can be viewed as equivalent to:
Alternatively, viewed in terms of the TA having a public key (p, g, y) and private key (x), in the FIG. 2 process the sender A effectively modifies the TA public key using the hash of the string STR as an exponent for exponentiation, modulo p, of the element y of that key. The sender A also supplies the string to the TA to enable it to effect a complimentary modification to its private key by multiplying the private key x by the hash of the string. Where the string comprises information serving to identify an intended recipient B of the message m, the modification of the TA's public key can be thought of as a customization of the public key to the intended recipient B. This process of modifying another party's public key by using the hash of a string STR as an exponent for exponentiation of at least an element of the public key, is not restricted to the ElGamal-based encryption/decryption described above and can be effected in connection with any suitable cryptographic process.
A potential drawback of the FIG. 2 embodiment is that the TA can read the messages m. In order to prevent this, B can blind the encrypted message before sending it to TA for decryption, B subsequently un-blinding the decrypted, but still blinded, message returned by the TA to recover the message m. By way of example, step 13 of FIG. 2 can be replaced by:
The TA carries out its processing steps 14 to 18 as before but using J′ rather than J; the result of step 16 is now the recovery of mk—that is, the blinded but decrypted message—rather than the message m. In order for B to un-blind the message, step 18 now becomes:
It will be appreciated that the blinding/un-blinding operations can differ from those described above. For example, blinding can be effected by computing a modulo-p division of J by k, in which case un-blinding would be effected by a modulo-p multiplication by k of the decrypted, but still blinded, message returned by the TA.
Many variants are possible to the above-described embodiments of the invention. Thus, in certain situations it may be required that a message should only be decryptable with the cooperation of multiple trusted authorities each of which would typically have a different associated public and private data. One such situation where this may be desirable is where the sender wishes to impose multiple conditions but no single trusted authority is competent to check all conditions—in this case, different trusted authorities can be used to check different conditions. Another situation in which multiple trusted authorities may be required is where there is a concern that a trust authority may have access to the encrypted, but not blinded, messages passing from A to B and it is important to prevent the trust authority reading the messages—in this case, multiple trusted authorities can be used together in a manner such that no one authority can read the messages passing from A to B.
Various arrangements are possible for involving multiple trusted authorities, including: