The present invention provides a method for encrypting data according to an asymmetrical method, based on a factorization problem, having a public key and a private key; the public key being the iteration number L as well as the composite number n, n preferably being the product of a plurality of large prime numbers; the private key is made up of the factorization of n; the message m=(m1, m2) to be encrypted is made up of at least components m1 and m2; an encryption function f(x) is iterated a total of L times, with c=(c1, c2)=fL(m); f(m)=(f1(m),f2 (m)) being applicable, and f1=(m1 op1 m2) mod n as well as f2=(m1, op2 m2) mod n; op1 being, for example, an addition and op2 being, for example, a multiplication. The encryption function f(x) is selected in such a way that the encryption iteration can be reversed by the L-fold solution of a quadratic equation modulo n, it thus being possible to retrieve the original message from the encrypted information c=(c1, c2). In an embodiment, a multivaluedness of the quadratic equation is eliminated by additional bits of ai, and bi. In an embodiment, the multivaluedness of the quadratic equation is eliminated by calculating a parity and a Jacobi symbol which, for example, in the case of prime numbers of form 3 mod 4, can be communicated by 2 bits per iteration step. In an embodiment, general iterations f1=(k1·m1+k2·m2) mod n as well as f2=(k3·m1·m2) mod n are used, constants being part of the public key. In an embodiment, the composite number n as public key contains more than two factors. In an embodiment, the message is now made up of an N-tuple m=(m1 . . . ·mn), the formula for the Lth iteration step using dependencies of N values in each iteration step. In an embodiment, the multivaluedness is resolved by additional bits that are derived from the values obtained in each iteration. In an embodiment, the multivaluedness is resolved by redundancy in the transmitted data.
The present invention provides a method for generating a signature, wherein a signature is generated by interchanging the encryption and decryption steps from one or more of the method embodiments described herein. The present invention provides a software for a computer which implements one or more of the method embodiments described herein. That is, the software is instructions configured to be executed by the computer; the instructions which, when executed by the computer, cause the performance of one or more of the method embodiments described herein. The present invention provides for a data carrier for a computer, characterized by the storage of software for the computer which implements one or more of the method embodiments described herein.
The present invention relates to an asymmetrical and public encryption method. In particular, the invention relates to a method for encrypting data on the basis of the factorization problem. In this context, the decryption of encrypted data is as complex as the problem of finding large prime divisors of large numbers. In detail, in the present invention, quadratic equations are to be solved for the decryption.
Encryption methods are used to protect data from unauthorized access when stored or during transmission over insecure communication channels. In so doing, the data are changed in such a way that this change cannot be undone without knowledge of a specific key. Encryption methods may be subdivided into the categories of asymmetrical and symmetrical. In symmetrical methods, the same key is used both for encryption and for decryption. Asymmetrical methods have two different keys, of which one is used for encryption and the other for decryption. In this context, all users can know the encryption key, whereas the decryption key must be kept secret. Therefore, the encryption key is also known as the public key, and the decryption key as the private key. Book [1] according to the literature list, for example, offers an overview of modern encryption methods.
The methods of Rabin ([3]) and Williams ([6]), which likewise utilize quadratic equations, are known. However, in these methods, only half the data bits is sent per transmission. Corresponding complexity restrictions thereby arise, and a greater demand for computing power during the encryption and the decryption.
Using polynomials of the second degree, the method of Schwenk and Eisfeld ([5]) offers little security against attacks which take advantage of the dependencies of message parts m1 and m2 on one another.
The objective is achieved by an invention having the features delineated in the independent claims. An asymmetrical encryption method is thereby described based on the factorization problem. It has less complexity than the RSA method in the encryption, and is able to transmit more data bits per encryption than the Rabin method or Williams method.
As already described above, the present invention concerns an asymmetrical encryption method. The public key is made up of a large composite number n; the private key is made up of the factors of the composite number. The encryption is made up of a number of iterations of individual encryption steps that are successively reversed during the decryption. The reversal of an individual encryption step requires the solving of a quadratic equation modulo n (see below). Such a quadratic equation can only be easily solved if the factors of n are known.
The private key is preferably made up of the large prime numbers p and q. The public key is the product n of these two prime numbers, as well as a comparatively small integer L which is greater than one. Message m is made up of two integral values m1 and m2, so that
m=(m1, m2),
both values lying in the set Zn={0, 1, 2, . . . , n−1}.
The encryption is accomplished via the equation
c=fL(m)
In the present case, encrypted value c is likewise made up of a double tuple of integers from Zn, that is, c=(c1, c2).
Function fL(m) is recursively defined by
fj+1(m)=f(fj(m)).
For j=1, f1(m)=f(m)=(f1(m), f2(m)) applies, where
f1(m)=m1+m2 mod n
f2(m)=m1·m2 mod n.
The encrypted text is therefore obtained by the recursions
ai+1=ai+bi mod n (1)
bi+1=ai·bi mod n. (2)
with the starting values a0=m1, b0=m2 and the final values c1=aL, c2=bL.
For the decryption, one must be able to reverse the recursion. This is accomplished by solving the above equations for ai and bi. One immediately obtains the quadratic equation
z2−ai+1·z+bi+1=0 mod n, (3)
which has ai and bi as solutions. The problem of the further solutions of equation (3) will be discussed later. If n is the product of very large prime numbers, then the solution of quadratic equations without knowledge of the prime factors is presumably a very difficult problem. With knowledge of the prime factors, however, this is possible without difficulty. The current methods for taking the root modulo n are described in detail in [2].
To ensure the security of the encryption system, the recursion must be performed at least twice, since otherwise, if it is performed exactly one time, the message parts m1 and m2 enter in linear fashion into the term a1=m1+m2.
Another important aspect is the selection of the correct roots for the decryption.
If the number n contains exactly two prime factors p and q, equation (3) has four solutions. With a few bits for each ai, i=1, 2, . . . , L, the sender is able to eliminate multivaluedness for the legitimate receiver. To resolve the multivaluedness, for example, error detection characters or parity characters may in each case be derived from ai.
In the most favorable case, 2 bits per iteration step are needed to completely resolve the multivaluedness in each step. The 4 solutions of equation (3) are given by
are the four square roots of the above expression modulo n.
The four values are connected as follows:
wi
We select the parity (even, odd) of the four roots so that
wi
One particularly elegant solution making it possible to differentiate all four roots from one another is as follows for p≡q≡3 mod 4:
In addition to parity, the so-called Jacobi symbol (wi/n) is used as a further discriminant criterion (for theory and efficient calculation, see, for example, [2]). For non-trivial values of wi, as are needed in the decryption, the Jacobi symbol supplies the value 1 or −1. The Jacobi symbol can be calculated with expenditure O(log2 n).
The parity and the Jacobi symbol are sufficient for precisely selecting one of the four roots wi
The root leading to solution ai in equation (4) is designated by wi, thus, ai=ai+1/2+wi mod n. The parity and the Jacobi symbol are each specified with respect to this root. With the establishment of the value of ai, the value for bi then follows immediately as bi=ai+1−ai mod n. In summary, one thus obtains
ai=ai+1/2+wi mod n (5)
bi=ai+1/2−wi mod n. (6)
In the encryption, at each step, from the number pair (ai, bi), the pair (ai+1, bi+1) is calculated, as well as the parity and the Jacobi symbol of wi=(ai−ai+1/2) mod n.
With knowledge of the factorization, these steps can each be reversed by solving
√{square root over (ai+12/4−bi+1)}mod n,
parity and Jacobi symbol of this root being represented.
Another important aspect is the parameter selection. At present, realistic orders of magnitude for each of the two prime numbers are from approximately 510 bits, i.e., n has a length of approximately 1020 bits. For L, a magnitude O(log log n) is recommended; for n of 1000 bits, a value of approximately 3-10.
The bit lengths to be selected in the future may be oriented to the parameters of the RSA method.
An advantage of the method presented here is that the quantity of useful data is twice as great as in comparable methods.
Using standard algorithms, an encryption complexity of O(L log2 n) is reached, if one calculates the expenditure for a multiplication using O(log2n). When using current algorithms, one must reckon with an expenditure of O(L log3 n) for the decryption complexity. If an order of magnitude of O(log log n) is selected for L, a time advantage (in addition to the greater useful-data rate) results for the encryption compared to the RSA method.
As in the case of the Rabin method and Williams method, care must be taken in the implementation that, in each case, only the correct roots of equation (3) exit the decoder during the decryption, since otherwise the number n can be factored.
In another refinement, as in the RSA method, module [sic] n may also contain more than two large prime factors. Naturally, the number of solutions for equation (3) also increases accordingly.
A further generalization is achieved by introducing additional constants in the recursion:
ai+1=k1·ai+k2·bi mod n
bi+1=k3·ai·bi mod n,
which are made known as part of the public key. The decoding is performed in correspondingly modified form.
In another specific embodiment, the magnitude of the tuple is altered. Instead of working with double tuples m=(m1, m2), it is also possible to work with q tuples. In the following, the expansion based on triple tuples is illustrated. The message is now made up of the triple tuple
m=(m1,m2,m3)
The formula for the Lth iteration step is still
fj+1(m)=f(fj(m)),
the basic iteration f1(m)=(f1(m),f2(m),f3 (m)), however, being formed as follows:
f1(m)=m1+m2+m3 mod n
f2(m)=m1·m2+m1·m3+m2·m3 mod n
f3(m)=m1·m2·m3 mod n.
The inverse calculation is accomplished by solving a third-degree equation. The roots may again be discriminated by information (parity symbol, Jacobi symbol, etc.) derived accordingly from the interim results. The expansion to degrees greater than or equal to four may be accomplished in analogous manner. In the iteration, essentially the elementary-symmetric Newtonian terms must be considered, to which additional constants, as already described above, may be added.
In the following, the method of the present invention is elucidated in light of an example. For reasons of clarity, the numbers in the following are selected to be very small. Let us say n=8549=p·q, with the private prime numbers p=83 and q=103. Let us assume the number of iterations L=3, and the message to be encrypted is given by m=(m1, m2)=(123,456). Even parity is coded by a zero, uneven parity by a one. Parity bit bp is used for this. If the Jacobi symbol is equal to one, a one is coded, if it is equal to minus one, a zero is coded. Jacobi bit bJ is used for this.
The following values are obtained
(a0, b0)=(123,456)
(a1, b1)=(579,4794)
(a2, b2)=(5373,5850)
(a3, b3)=(2674,5926)
To each of the three pairs (a1, b1), (a2, b2) and (a3, b3), L·2 bits of parity bits and Jacobi bits, given in the example by the following binary vector (bP
Initially, the receiver determines the four roots w2
In certain application cases, e.g. when the unencrypted message m contains redundancy, it is possible to dispense with the co-transmission of the bits for resolving the multivaluedness. For example, this is the case for normal texts or when a so-called hash value was already placed in m. However, this is done at a decryption expenditure increased by a factor of 4L. Corresponding compromises are likewise possible; for example, the specification of only the parity in each of the L steps reduces the number of bits to be co-transmitted to L bits, and increases the decryption expenditure by the factor 2L.
As in the asymmetrical methods known in the literature ([1], [3], [4], [5]), a so-called digital signature method may be attained essentially by the interchange of encryption operations and decryption operations in the proposed method as well.
In embodiments of the present invention, a data carrier for a computer is provided. The data carrier being a software storage device.
| Number | Date | Country | Kind |
|---|---|---|---|
| 102 29 811 | Jul 2002 | DE | national |
| Filing Document | Filing Date | Country | Kind | 371c Date |
|---|---|---|---|---|
| PCT/DE03/01917 | 6/11/2003 | WO | 00 | 7/27/2005 |
| Publishing Document | Publishing Date | Country | Kind |
|---|---|---|---|
| WO2004/006496 | 1/15/2004 | WO | A |
| Number | Name | Date | Kind |
|---|---|---|---|
| 4686614 | Costello | Aug 1987 | A |
| 5528481 | Caldeira et al. | Jun 1996 | A |
| 5577124 | Anshel et al. | Nov 1996 | A |
| 5642274 | Zahnen et al. | Jun 1997 | A |
| 5818703 | Jacobson | Oct 1998 | A |
| 5818708 | Wong | Oct 1998 | A |
| 6052467 | Brands | Apr 2000 | A |
| 6266411 | Etzel et al. | Jul 2001 | B1 |
| 6553120 | Vaudenay | Apr 2003 | B1 |
| 6792108 | Patera et al. | Sep 2004 | B1 |
| 6876744 | Etzel et al. | Apr 2005 | B1 |
| 20020034300 | Thuvesholmen et al. | Mar 2002 | A1 |
| 20050147240 | Agrawal et al. | Jul 2005 | A1 |
| Number | Date | Country |
|---|---|---|
| 10034527 | Jan 2002 | DE |
| 0805253 | Nov 1997 | EP |
| 0852281 | Jul 1998 | EP |
| 1091078 | Apr 2001 | EP |
| 2692418 | Dec 1993 | FR |
| Number | Date | Country | |
|---|---|---|---|
| 20060013403 A1 | Jan 2006 | US |