Field of the Invention
The invention relates to a method and a device for cryptographic processing with the aid of an elliptic curve on a computer.
A finite body is called a finite field. Reference may be made to Lidl and Niederreiter: Introduction to Finite Fields and Their Applications, Cambridge University Press, Cambridge 1986, ISBN 0-521-30706-6, p. 15, 45, concerning the properties and definition of the finite field.
Increasingly growing demands are being placed on data security with the wide dissemination of computer networks and associated applications which are being developed over electronic communication systems (communications networks). The aspect of data security takes account of, inter alia,
A “key” is understood as data which are used in cryptographic processing. It is known from public-key methods to use a secret and a public key. Reference is had, in this context, to Christoph Ruland: Informationssicherheit in Datennetzen [Information Security in Data Networks], DATACOM-Verlag, Bergheim 1993, ISBN 3-892238-081-3, p. 73–85.
An “attacker” is defined as an unauthorized person who aims at obtaining the key or breaking the key.
Particularly in a computer network, but increasingly also in portable media, for example a mobile telephone, a chip card or smart card, it is to be ensured that a stored key also cannot be accessed when an attacker takes over the computer, the mobile telephone or the chip card.
In order to ensure adequate security of cryptographic methods, keys, in particular in the case of asymmetric methods, are respectively determined with lengths of several 100 bits. A memory area of a computer or portable medium is mostly of meager dimension. A length of a key of several 100 bits stored in such a memory area reduces the free memory space on the computer or the medium, such that only a few such keys can be stored at the same time.
An elliptic curve and its use in cryptographic processing are known in the literature, for example: Neal Koblitz: A Course in Number Theory and Cryptography, Springer Verlag, New York, 1987, ISBN 0-387-96576-9, p. 150–79; and Alfred J. Menezes: Elliptic Curve Public Key Cryptosystems, Luwer Academic Publishers, Massachusetts 1993, ISBN 0-7923-9368-6, p. 83–116.
The object of the invention is to provide a method and device for cryptographic processing with an elliptic curve on a computer which overcomes the above-noted deficiencies and disadvantages of the prior art devices and methods of this kind, and which requires less memory space.
With the above and other objects in view there is provided, in accordance with the invention, a method of cryptographic processing on a computer, which comprises the steps of:
A method for cryptographic processing with the aid of at least one elliptic curve on a computer is specified, in the case of which the elliptic curve is prescribed in a first form, several first parameters determining the elliptic curve in the first form. The elliptic curve is transformed into a second form by determining several second parameters, at least one of the second parameters being shortened in length by comparison with one of the first parameters. The elliptic curve after the transformation, that is to say in the second form, is used for the cryptographic processing.
The significant shortening of one of the first parameters yields a saving of a memory area which is to be provided for this parameter. Since the memory area, for example on a chip card, is of tight dimension, free memory space is achieved for each shortened parameter by means of the saving of several 100 bits, for example for storing a further secret key. The security of the cryptographic method is ensured nevertheless by the shortening of the respective parameter.
In the case of the use of an elliptic curve in a cryptographic method, the outlay for an attacker to determine the key rises exponentially with its length.
In accordance with an added feature of the invention, the first form of the elliptic curve is defined by
y2=x3+ax+b over GF(p) (1)
wherein
Designation “mod p” as used in this text denotes a special case for the finite field, specifically the natural numbers smaller than p. The term “mod” stands for MODULO, and comprises an integral division with remainder.
The second form, as noted above, of the elliptic curve is determined by
y2=x3+c4ax+c6b over GF(p) (2)
where c is a constant.
In order to save memory space, Equation (1) is transformed into Equation (2), and a variable characterizing the elliptic curve in accordance with Equation (2) is shortened.
The invention is preferably integrated in cryptographic encoding, cryptographic decoding, key allocation, encoding in a digital signature, verification of the digital signature, and in asymmetrical authentication, that is:
Encoding and Decoding:
Data are encoded by a sender—by means of symmetrical or asymmetrical methods—and decoded at the other end at a receiver.
Key Allocation by a Certification Authority:
A trustworthy institution (certification authority) allocates the key, it being necessary to ensure that the key comes from this certification authority.
Digital Signature and Verification of the Digital Signature:
An electronic document is signed, and the signature is added to the document. It can be established at the receiver with the aid of the signature whether the desired sender really has signed.
Asymmetric Authentication:
A user can verify his identity with the aid of an asymmetrical method. This is preferably done by coding using a corresponding private key. Using the associated public key of this user, anyone can establish that the code really does come from this user.
Shortening of Keys:
A variant of the cryptographic processing comprises shortening a key, which key can preferably be used for further procedure in cryptography.
With the above and other objects in view there is also provided, in accordance with the invention, a device for cryptographic processing with a processor unit programmed to:
In accordance with an additional feature of the invention, the device is embodied as a chip card (smart card) with a memory area, the memory area being adapted to store the parameters of the elliptic curve.
In accordance with a concomitant feature of the invention, the chip card has a protected memory area adapted to store a secret key.
In other words, the device has a processor unit which is set up in such a way that an elliptic curve is prescribed in a first form, several first parameters determining the elliptic curve, and that the elliptic curve is transformed into a second form by determining several second parameters, at least one of the second parameters being shortened in length by comparison with the first parameters. Finally, the elliptic curve is determined in the second form for the purpose of cryptographic processing.
This device can be a chip card which has a protected and a non-protected memory area. Keys, that is to say parameters which characterize the elliptic curve, can be stored both in the protected memory area and in the non-protected one.
This device is particularly suited to carrying out the method according to the invention or one of its developments explained above.
Finally, there is also defined a computer-readable medium which carries the computer-executable instructions for carrying out the above-outlined method.
Other features which are considered as characteristic for the invention are set forth in the appended claims.
Although the invention is illustrated and described herein as embodied in a method and device for cryptographic processing with the aid of an elliptic curve on a computer, it is nevertheless not intended to be limited to the details shown, since various modifications and structural changes may be made therein without departing from the spirit of the invention and within the scope and range of equivalents of the claims.
The construction and method of operation of the invention, however, together with additional objects and advantages thereof will be best understood from the following description of specific embodiments when read in connection with the accompanying drawings.
Referring now to the figures of the drawing in detail and first, particularly, to
The elliptic curve is first given in a first form:
y2=x3+ax+b over GF(p) (3)
The length of the parameter a is reduced in a first step. The parameter p is, in particular, a prime number greater than 3, and GF(p) represents a finite field (Galois field) with p elements.
The elliptic curve
y2=x3+ax+b over GF(p) (4)
can be recast by a transformation into a birational isomorphic elliptic curve (elliptic curve in second form, see block 102)
y2=x3+c4ax+c6b over GF(p) (5).
The coefficient
c4a or (6)
−c4a (7)
can be shortened by suitable selection of the constant c (see block 103) with the advantage that the memory space required for storing this coefficient can be small by comparison with the memory space for the parameter a.
The numbers
The following cases are preferably distinguished in order to determine the number c4a (or −c4a)
a) p 3 mod 4
It holds in these bodies that:
Now let p=4k+3 and s be a fourth power which generates the multiplicative subgroup of the fourth powers (or the squares) in GF(p).
By definition
In this case s, t and k denote body elements from GF(p).
For p 3 mod 4, the parameter a can be converted by suitable selection of the constant c into the number c4a=1 in GF(p) or c4a=−1 in GF(p).
b) p 1 mod 4
It holds in such a body that:
It holds in addition in such a body that:
Now let p=8k+5 and s be a fourth power which generates the multiplicative subgroup of the fourth power in GF(p).
By definition
For p 5 mod 8, the parameter a can be converted into the number
c4a=1 or −1 or 2 or −2 in GF(p)
by suitable selection of the constant c.
b2) p 1 mod 8
The number c4a can be determined according to the following scheme:
In order to determine the number c2 mod.p, it is first established in the appropriate body GF(p) whether a is a fourth power, a square but not a fourth power, or a non-square.
a) p=4k+3
The term u=a(p−1)/2 in GF(p) is calculated in these bodies.
The term u=a(p−1)/4 in GF(p) is calculated in these bodies.
According to the scheme described in b2) above, z=C4 in these bodies.
The two roots (C2 and −c2) of c4 can be calculated in all three cases with an outlay of O(log p). For the case p=4k+3, only one of the two specified solutions is permissible, specifically that which is a square in GF(p). Both solutions are permissible in the other cases. Coefficient c6b of the elliptic curve can thus be calculated.
Such prime numbers are to be preferred in practice because of the closed formulas for the cases p=4k+3 and p=8k+5.
Let the prime number p=11 Case a: p=3 mod 4
The set of the squares Q, the set of the fourth powers V and the set of the non-squares NQ are thereby yielded as:
Table 2 shows various options for a value assignment of a and c4 which always yield 1 in the combination ac4, and Table 3 shows various options for a value assignment of a and c4 which always yield −1 in the combination ac4. This holds in GF(11).
Let the prime number p=13 Case b1): p=1 mod 4 and, at the same time, p=5 mod 8
The set of the squares Q (which are not fourth powers), the set of the fourth powers V and the set of the non-squares NQ are thereby yielded as:
The elliptic curve obtained in the manner described in the second form (see block 103) is used for the purpose of cryptographic processing.
Referring now to
An elliptic curve with the parameters a, b, p and a number of points ZP is determined in accordance with Equation (1) in a first step 301 in
Referring now to
The protected memory area 402 is designed to be unreadable. The data of the protected memory area 402 are used with the aid of an arithmetic-logic unit which is accommodated on the portable medium 401 or in the computer network 406. A comparative operation can therefore specify as result whether a comparison of an input with a key in the protected memory area 402 was successful or not.
The parameters of the elliptic curve are stored in the protected memory area 402 or in the unprotected memory area 403. In particular, a secret or private key is stored in the protected memory area, and a public key is stored in the insecure memory area.
An arithmetic-logic unit 501 is illustrated in
The term “computer-readable medium,” as used in this text, includes any kind of computer memory such as floppy disks, removable disks, hard disks, CD-ROMS, flash ROMs, non-volatile ROMs, and RAM.
Number | Date | Country | Kind |
---|---|---|---|
198 06 825 | Feb 1998 | DE | national |
This is a continuation of copending International Application PCT/DE99/00278, filed Feb. 2, 1999, which designated the United States.
Number | Name | Date | Kind |
---|---|---|---|
5442707 | Miyaji et al. | Aug 1995 | A |
5497423 | Miyaji | Mar 1996 | A |
Number | Date | Country |
---|---|---|
33 23 268 | Oct 1985 | DE |
2 007 884 | Feb 1994 | RU |
Number | Date | Country | |
---|---|---|---|
Parent | PCT/DE99/00278 | Feb 1999 | US |
Child | 09641868 | US |