1. Introduction
The RSA system was proposed in 1977 by Rivest, Shamir, and Adleman [
1] as a public key cryptosystem. The algorithm is based on a trap-door function that utilizes the Fermat–Euler theorem. The RSA algorithm’s strength depends on the difficulty of factorizing a large integer
n, which is the product of two large primes
p and
q. In RSA, the public exponent is an integer
e and the private exponent is an integer
d such that
.
Since its publication, the RSA cryptosystem has been intensively studied for vulnerabilities using various methods (see [
2,
3]). On the other hand, to improve the efficiency of RSA, many variants have been proposed such as Batch RSA [
4], Multi-Prime RSA [
5], Prime Power RSA [
6], CRT-RSA [
7], Rebalanced RSA [
8], Dual RSA [
9], and DRSA [
10].
In 1985, Koblitz [
11] and Miller [
12] showed independently how to use elliptic curves over finite fields for the design of cryptosystems. Such schemes contribute to elliptic curve cryptography (ECC) and their security is based on the hardness of the elliptic curve discrete logarithm (ECDLP). ECC offers high security with smaller keys and more efficient implementations than traditional public key cryptosystems such as RSA. ECC is increasingly used in industry for digital signatures such as ECDSA [
13], key agreement such as ECDH [
14], and Bitcoin [
15].
In 1991, Koyama et al. [
16] proposed a new scheme called KMOV by adapting RSA to the elliptic curve with an equation
over the ring
, where
is an RSA modulus satisfying
. In KMOV,
b is computed during the encryption process in terms of the plaintext
as
. The main property of KMOV is that
holds for any point
P on the elliptic curve, where
is the point at infinity. In 1993, Demytko [
17] proposed a variant of RSA, where the elliptic curve with the equation
over
is fixed. The advantage of Demytko’s scheme over KMOV is that it uses only the
x-coordinate of the points on the elliptic curve. One of the common properties of both schemes is that their security is based on the hardness of factoring large composite integers.
This paper proposes a new RSA variant based on the elliptic curve with the equation over the ring , where is an RSA modulus with , , and . The number of points on the elliptic curve over the finite field is , with . Similarly, the number of points on the same elliptic curve over is , with .
The new scheme is a variant of both RSA and KMOV and works as follows. The public exponent is an integer
e satisfying
, where
with
and
. To encrypt a message
m, one generates a random integer
r with
, computes
, and
on the elliptic curve with equation
over the ring
. The point
C is then the encrypted message. To decrypt
C, one first computes
and the two values
and
such that
and
Using and , one computes and . Finally, one computes the initial message on the elliptic curve with equation over the ring .
This paper studies the security of the new scheme regarding the modulus n, the private multiplier d, and the elliptic curve with an equation . For the modulus , we study its resistance against factorization algorithms and its decomposition as the sum of two or four squares. We show that knowing the order with and is not sufficient to factor n. For the private multiplier d, we show that the attacks based on the continued fraction algorithm or Coppersmith’s method are applicable only if . For comparison, the former techniques are applicable to RSA and KMOV when their private exponent and multiplier is such that . Finally, we study the discrete logarithm problem for an elliptic curve with the equation . We also study isomorphism and homomorphism attacks and ways to overcome them.
To summarize, our scheme is a generalization of the KMOV and Demytko’s schemes, which can be used for encryption and signatures. Moreover, it is a probabilistic algorithm that is secure against known classical attacks.
It should be noted that our scheme is not secure under quantum cryptanalysis because Shor’s [
18] algorithm can factor any RSA modulus in polynomial time.
The rest of this paper is organized as follows.
Section 2 presents the results that will be used in this paper.
Section 3 and
Section 4 present the theory of elliptic curves over a finite field
and a finite ring
, respectively.
Section 5 presents the new scheme.
Section 6 presents an analysis of the security of the new scheme.
Section 7 concludes the paper.
2. Useful Lemmas
This section presents some results that will be useful for the security analysis of our new scheme.
Let
be an RSA modulus with balanced prime factors
p and
q, typically,
. The following result gives the upper and lower bounds for
p and
q in terms of
n [
19].
Lemma 1. Let be the product of two unknown integers such that . Then, In 1990, Wiener [
8] showed that RSA with a public key
is insecure if the private exponents
d satisfy
with
. His method is based on the continued fraction algorithm and makes use of Theorem 184 in [
20].
Theorem 1. Let ξ be a real number. Let a and b be two positive integers satisfying and Then, is a convergent of the continued fraction expansion of ξ.
In 1996, Coppersmith [
21] described a polynomial-time algorithm for finding small solutions of univariate modular polynomial equations. The method is based on lattice reduction. Since then, the Coppersmith method has been extended to solve modular polynomial equations with more variables and has been used for cryptanalysis, especially with regard to the RSA system. To illustrate this point, Boneh and Durfee [
22] presented an attack on RSA by transforming the RSA key equation
into the small inverse problem
. Using Coppersmith’s method, they improved Wiener’s attack up to
.
The following result is a generalization of the method of Boneh and Durfee for solving the small inverse problem (see [
22,
23,
24]).
Lemma 2. Let n and e be two distinct integers of the same size. Let x and y be two integers such that , , and . If and , then one can find x and y in polynomial time.
3. Elliptic Curves over the Finite Field
This section presents the main definitions and properties of elliptic curves. For more properties, see [
25,
26,
27,
28].
Let
p be a prime number and
be the finite field with
p elements. An elliptic curve
E over
is an algebraic curve with no singular points, which is given by the Weierstrass equation
where
for
. When
, the equation can be transformed into the short Weierstrass equation
with the nonzero discriminant
. The set of points
satisfying the equation, along with the infinity point
, is denoted as
. The total number of points on
is called the order of
E and is denoted as
. It is well known that
can be written as
, where
t is bounded by the following result of Hasse
. An addition law is defined over
using the chord-tangent method.
The following result is fundamental to finding the exact value of
for specific elliptic curves (see Theorem 5, page 307, Section 4, Chapter 18 of [
29]).
Theorem 2. Let be a prime number with . Let with . Consider the elliptic curve with equation over . Then,where , , and is the biquadratic (or quartic) residue character of α modulo π. The following result provides an explicit solution for
(see page 122, Proposition 9.8.2 of [
29]).
Theorem 3. Let be a prime number with . Let with . Then,where , . The following result is valid when the residue quartic character is computed for modulo p.
Lemma 3. Let be a prime number with . Let with . Then, Proof. Let
be a prime number. First, we have
and
. Next, let
with
. According to Fermat’s Little Theorem, we have
. Then,
or
. If
, then
, and if
, then
and
. To summarize, we have
for modulo
p. This concludes the proof. □
The following result provides a simple proof for the estimation of
when
. Alternative proofs can be found in [
28] (Section 4.4 p. 115) and [
29] (Section 4 in Chapter 18).
Lemma 4. Let be a prime number with and . For with , let be the elliptic curve with the equation over . Then, Proof. Let
with
and
. We set
with
. Then,
and
We apply Theorem 2 to the elliptic curve with equation
over
. We obtain
Theorem 3 asserts that
. First, assume that
. Then,
and
Next, assume that
. Then,
and
Now, assume that
. Since
, then
and
. Hence,
and
Finally, assume that
. Then,
and
, which gives
This concludes the proof. □
4. Elliptic Curves over the Ring
This section briefly describes the theory of elliptic curves over the ring
, where
is an RSA modulus (see [
28], Section 2.11 and [
30] for more details).
Let
with
. The elliptic curve
is the set of points
that satisfies the equation
together with the point at infinity denoted as
. According to the Chinese remainder Theorem, the set
is isomorphic to the direct sum
, where
is the elliptic curve with equation
over
with the point at infinity
, and
is the elliptic curve with equation
over
with the point at infinity
. Hence, the point at infinity of
is
. The points of the form
with
and the points of the form
with
are semi-zero points, whereas the ordinary points are of the form
with
and
. A group law can be given for
using the chord and tangent addition law. However, the addition law is not always well-defined when using analytical expressions since there are elements in
that are not invertible modulo
n. To overcome this, the projective coordinates
are used with the equation
. Hence, for any point
P of the elliptic curve
, we have
In this paper, the arithmetic of the new scheme is based on the elliptic curve with and , where with large prime numbers. Consequently, the sum of two points of is defined with overwhelming probability.
The following result gives an explicit value for the order .
Theorem 4. Let be an RSA modulus with , , and . For with , let be the elliptic curve with the equation over . Then, for any point P on , we havewhere satisfies (1) and satisfies (2). 6. Security Analysis
This section presents an analysis of the resistance of our scheme to the most well-known attacks that can be applied to it.
6.1. Resistance against Factorization Methods
When
p and
q are sufficiently large, factoring the RSA modulus
is believed to be hard for all currently known factorization algorithms (see [
31,
32]). Indeed, Pollard’s rho method is ineffective since its run time is
and depends on the size of the prime number
p found. This is similar to Lenstra’s Elliptic Curve Method (ECM) for which the run time is
. The Number Field Sieve [
33] is also ineffective for large primes
p and
q. Its run time is
, where
c is a constant.
6.2. Resistance against Decomposition as Sum of Two Squares
It is well known that if
with
, then
n can be expressed as the sum of two squares as
. In the new scheme, the modulus is in the form
. Then, the Brahmagupta–Fibonacci identity expresses
n as a sum of two squares in two different ways, namely
Euler observed that if
with
and
, then
where
On the other hand, we have
. It follows that decomposing
n as the sum of two squares in two different ways will provide a solution to the equation
with
, and two solutions of the congruence
. This is known to be equivalent to factoring
n, as in the quadratic sieve factoring algorithm [
34] and in Rabin’s cryptosystem [
35].
It is also known that by applying the continued fraction algorithm to
, it is possible to find one representation of
n (see [
36]) as
. This leads to one of the systems
This is insufficient for solving either of the two systems. Consequently, the representation of n as a sum of two squares by the continued fraction method is inadequate to factorize it.
6.3. Resistance against Decomposition as Sum of Four Squares
Lagrange’s four-square theorem states that every positive integer
n is the sum of four squares (Theorem 369 in [
20]), that is,
The number of decomposing
n is such that a sum is denoted as
, and for odd
n, Jacobi’s four-square theorem formula gives
(Proposition 17.7.2 of [
20]). For the modulus
, a specific decomposition as a sum of four squares is
Conversely, let
be a decomposition of
n leading to the factorization
. Then,
from which we obtain
As the decomposition of
, with the positive integers
and
that satisfy
, is unique,
p can be decomposed as
with the integers
r and
s in eight ways, namely
This is also true for
q. Consequently, among the representations of
n as a sum of four squares
, only 64 decompositions can lead to the factorization of
n by using
This is negligible compared to , which represents the number of decompositions of a large modulus as the sum of four squares.
6.4. Resistance against Solving the Order
In RSA, it is well known that solving Euler’s totient function
is equivalent to factoring
. This is also true for solving the order
in the KMOV system. For an elliptic curve
E over a finite ring
with an RSA modulus
n, Martin et al. [
37] proved that computing the order
is as difficult as factoring
n. Moreover, for our scheme, we have the following facts.
Let
be fixed. In our scheme, the order of the elliptic curves
is of the form
with
and
. Assume that the factorization of
n is known. Then, one can compute
and
using a specific algorithm to determine the order of an elliptic curve over a finite field such as the Schoof–Elkies–Atkin algorithm [
38]. This implies that
can be computed. Conversely, assume that
is known, where
and
. Let
and
such that
Assume that
and
are of the same size so that
and
. Then, if
, we obtain
, and
Also, if
, we obtain
, and
Hence, using Lemma 1, we obtain
Similarly, assuming that
and
are of the same size with
and
, we obtain
As a consequence, we have
and
By combining the former inequalities, we obtain
This implies that the order is sufficiently large. Moreover, with a high probability, it can take any shape, and consequently, there is no efficient method to factor it with a classical computer. Hence, finding p and q is not feasible in general.
It is important to note that the work of Kunihiro and Koyama [
39] on the equivalence between factoring
n and counting the number of points on elliptic curves over
does not apply when the order
is known for a fixed
a. The reason is that in [
39], an oracle is needed that can count the number of points on every elliptic curve over
, whereas in our situation, only
is known.
6.5. Resistance against Small Private Exponent Attacks
The main small private exponent attacks on RSA are based on the key equation . Wiener’s attack is based on the continued fraction algorithm, which exploits the approximation . It leads to the factorization of n under the condition . The attack of Boneh and Durfee is based on Coppersmith’s method and exploits the existence of a small solution to the modular equation . It works for .
In the following, we show that the private exponent d in our scheme can be small enough without undermining its security. Typically, it should be larger than , whereas in RSA, it should be larger than .
Lemma 5. Let be an RSA modulus with , , , , and . If d satisfies the key equation , where and , then Proof. Rewrite the key equation in the form
with
,
. We have
Suppose that
and
are of the same bit-size so that
and
. Then,
Hence,
from which we deduce that
This leads to
where we use
, which is valid since
. Using Lemma 1, we obtain
This concludes the proof. □
The following result shows that with regard to Wiener’s attack, the private exponent d can be very small in our scheme compared to the private exponent in RSA.
Theorem 5. Let be an RSA modulus with , and . Let e be a public exponent such that with and . If d satisfies the equation with , one can find d and k in polynomial time.
Proof. The key equation is in the form
with
, and
. Then, Lemma 5 gives
Dividing by
, we obtain
Using the key equation
, we obtain
By assuming that
, this implies that
. Then, (
6) implies that
The solutions in
d of the inequality
satisfy
For such solutions, we have
This implies that can be found among the convergents of the continued expansion of . Since the continued fraction algorithm computes the convergents of with complexity , one finds k and d in polynomial time. □
Theorem 5 shows that when , it is possible to retrieve the private exponent d. If , the continued fraction attack does not apply and d may not be found using this technique.
The following result makes use of lattice reduction techniques.
Theorem 6. Let be an RSA modulus with , and . Let e be a public exponent such that with and . If d satisfies the equation with , one can find d and k in polynomial time.
Proof. Since
d satisfies an equation of the form
with
,
, we rewrite
where
. Then, the key equation can be transformed into the modular equation
We set the bound
for some
. On the other hand, we have
By combining (
4) and (
5) with Lemma 1, we obtain
Then, we set the bound
with
. Now, we can apply Lemma 2 to Equation (
7). This allows us to find
k and
s in polynomial time under the condition
. Using
k and
s, one can find
d since
. □
Remark 1. The bound on d in Theorem 6 is slightly better than the bound in Theorem 5. In both cases, one can find d and k, which giveswith , . According to (3), we know that . This is large enough, and in general, is hard to factor when n is large. Consequently, the method described in [40] for extracting p and q cannot be applied. As a consequence, finding p and q using the continued fraction method or the lattice reduction techniques when the multiplier d is small is infeasible. 6.6. Resistance against Discrete Logarithm Problem
The elliptic curve discrete logarithm problem (ECDLP) over a finite field
is the following computational problem:
Given an elliptic curve E over and two points , find an integer x, if any, such that in E. The ECDLP is still resistant to several non-quantum algorithms and is the foundation of the security of elliptic curve cryptography (see [
41] for more details).
For an elliptic curve defined over a finite ring such as
, where
is an RSA modulus, the elliptic curve discrete logarithm problem can be solved if one knows
p and
q and if one can solve the ECDLP in both
and
. Hence, solving the ECDLP on
is more difficult. This problem is used to build several elliptic curve-based cryptosystems [
16,
17,
42,
43,
44].
One more crucial fact of our scheme is that a new elliptic curve is generated each time a message is encrypted. This ensures that any generic or global discrete-logarithm attacks on our scheme are infeasible.
6.7. Resistance against Isomorphism and Homomorphism Attacks
Let
and
be two elliptic curves with equations
and
, arising from our scheme. Then,
and
are isomorphic if and only if
for some
. As in KMOV [
16], it is possible to launch an isomorphism attack on our scheme. Moreover, the encryption and decryption are homomorphic, that is,
when using the same elliptic curve. Also, it is possible to launch a homomorphism attack on our scheme, similar to that on KMOV. To overcome isomorphism and homomorphism attacks, a hash function should be applied, as shown in the signature in
Section 5.3. This is sufficient to ensure that the new scheme is immune to the two types of attacks.
6.8. Other Attacks
There are more attacks in the literature that are related to some elliptic variants of RSA.
In [
45], Bleichenbacher proposed four attacks on KMOV when one of the following situations is satisfied.
The ciphertext and half of the plaintext are known.
Three encryptions of the same message are encrypted with distinct public keys.
Six encryptions of linearly related messages are encrypted with distinct public keys.
Two encryptions of linearly related messages are encrypted with the same public key.
Similarly, in [
46], Kurosawa et al. showed that both the KMOV and Demytko’s schemes are not secure when the same message is encrypted with a suitably large number of distinct keys.
Note that the former attacks are not applicable to our scheme since the encryption process is probabilistic. This implies that, in contrast to the KMOV and Demytko’s schemes, if we encrypt the same message twice, even with the same key in the new scheme, the cyphertexts are different with a high probability because they depend on a randomly generated number in the encryption phase.