• No results found

IMPLEMENTATION OF SIGNATURE SCHEME WITH PROJECTIVE COORDINATES ON ELLIPTIC CURVE CRYPTOSYSTEM

N/A
N/A
Protected

Academic year: 2020

Share "IMPLEMENTATION OF SIGNATURE SCHEME WITH PROJECTIVE COORDINATES ON ELLIPTIC CURVE CRYPTOSYSTEM"

Copied!
15
0
0

Loading.... (view fulltext now)

Full text

(1)

IMPLEMENTATION OF SIGNATURE SCHEME WITH PROJECTIVE

COORDINATES ON ELLIPTIC CURVE CRYPTOSYSTEM

P. Anuradha Kameswari, L. Praveen Kumar

Department of Mathematics, Andhra University, Visakhapatnam - 530003, Andhra Pradesh, India.

Department of Mathematics, Andhra University, Visakhapatnam - 530003, Andhra Pradesh, India.

ABSTRACT

In this paper we implement a signature scheme on cryptosystem with elliptic curves by using the formulas for the projective coordinates obtained by generalizing the ideas of Montgomery to Weierstrass equation of elliptic curves. This arithmetic with projective coordinates is more efficient and avoid many inversions in the computations. We also propose a fast computing method evaluating the coordinates.

KEYWORDS : Elliptic Curves, Projective Coordinates, Cryptosystem.

INTRODUCTION:

In 1985 Koblitz [1] [2] and Miller [3] independently made use of elliptic curves in cryptography. Later Koyama [4] and Demytko [5] also produced analogue of RSA with elliptic curves to overcome the vulnerabilities like homomorphic nature of RSA, however it was shown that even these non-homomorphic RSA type cryptosystems are not totally free from RSA attacks[6], and it was shown that they are susceptible to chosen message attacks.[7]

In [7] “A New and Optimal Chosen - message Attack on RSA-type Cryptosytems” by Daniel Bleichenbacher, Marc Joye and Jean-Jacques Quisquater, it is show that only one message is needed to mount the attack on Demykto’s system.

(2)

for projective coordinates on general Weierstrass equation of elliptic curves, [8][9][10] with these

formulas addition requires four additions, six multiplications and two squarings and doubling requires four additions, six multiplications and three squarings with no inversions. For any point

P on elliptic curve E(K) and for any integer k to compute the point addition kP it requires

only to calculate 2mP and (2m 1)P from mP and (m 1)P and we give a fast computation

method for kP generalizing the ideas given by P.Smith for Lucas sequences to elliptic curves.

2 POINT ADDITION WITH PROJECTIVE COORDINATES:

Let K be a field with Characteristic K ï‚č 2,3 and consider the elliptic curve E(K) over K in

Weierstrass form E : y2 = x3 Ax  B and for any points P = (x1,y1) and

} { \ ) , (

= x2 y2 E 

Q  with x1 ï‚č x2 the affine addition P  Q = (x3, y3) is given as:[11][12]

,

= 2 1 2

3 m x x

x  

. =

where , ) (

=

1 2

1 2 1

3 1 3

x x

y y m y

x x m y

  



and for P = (x1,y1) E the affine addition 2P = (x,y) is given as:

, 2

= m2 x1

x 

1 2 1 1

3 1

2 3 = where , ) (

=

y A x m y

x x m

y   

Now for any point P = (x,y) E , the projective coordinates are denoted as P = (X,Y,Z) for

Z X x = and

Z Y

y = .

Theorem 1: Let K be a field of characteristic not equal to 2,3 and E be the elliptic curve given

by the equation y2 = x3  Ax  B . If P = (x,y) then for any positive integer k , the projective

coordinates of kP are denoted as (Xk :Yk :Zk) and [Xk :Zk] are given by recursion formulas as

(3)

If k = 2m 1, ïƒŻïƒź ïƒŻ  ïƒŹ             . ) ( = , ) ( ) ( 4 = 2 1 1 2 1 1 1 1 1 m m m m k m m m m m m m m m m k Z X Z X Z X Z Z AZ X X Z X Z X Z BZ X

If k = 2m,

ïƒź  ïƒŹ     ). ( 4 = , 8 ) ( = 3 2 3 3 2 2 2 m m m m m k m m m m k BZ Z AX X Z Z Z BX AZ X X

Proof: For any point M = (x,y)on E : y2 = x3  Ax  Bwe have

. of s coordinate projective the ) , , ( for = ,

= X Y Z M

Z Y y Z X x . =

Therefore y2 x3  Ax  B

. = that implies Which 3 2 B Z X A Z X Z Y                     P m m E y x

P = ( , )on and any integer 0,we have for (2 1)

fixed a for ar

Inparticul ï‚ł 

(4)
(5)

ïƒș ïƒș  ïƒč ïƒȘ ïƒȘ                                                             2 1 1 2 1 1 3 1 1 3 4 = m m m m m m m m m m m m Z X Z X Z X Z X Z X Z X B ïƒș ïƒș  ïƒč ïƒȘ ïƒȘ                                                                       1 1 2 3 1 1 1 1 3 3 1 1 3 4 m m m m m m m m m m m m m m m m Z X Z X A Z X Z X A Z X Z X A Z X Z X ïƒș ïƒș  ïƒč ïƒȘ ïƒȘ                     ïƒș ïƒș  ïƒč ïƒȘ ïƒȘ                              1 1 2 1 1 2 1 1 2 1 1 2 2 2 2 m m m m m m m m m m m m m m m m Z X Z X Z X Z X Z X Z X A Z X Z X A 2 1 1 2 1 1 2 1 1 1 1 4 =                                              m m m m m m m m m m m m m m m m Z X Z X A Z X Z X Z X Z X Z X Z X B 4 1 1 2 1 1 2 1 1 1 1 1 2 1 2 4 =               ïƒș ïƒș  ïƒč ïƒȘ ïƒȘ                             m m m m m m m m m m m m m m m m m m Z X Z X Z X Z X Z X A Z X Z X Z X Z X B Z X 2 1 1 1 2 1 1 1 1 1 1 4 =                                 m m m m m m m m m m m m m m m m m m Z Z Z X Z X Z X Z Z Z AZ X X Z Z Z X Z X B    

 2

1 1 2 1 1 1 1 1 4 = m m m m m m m m m m m m m m Z X Z X Z X Z AZ X X Z X Z X Z BZ            

X2m1;Z2m1=[4BZ mZm1XmZm1 Xm1Zm  XmXm1 AZmZm12;

  ]

XmZm 1 X m 1Zm 2

Z X



 

(6)

             ïƒș ïƒș  ïƒč ïƒȘ ïƒȘ          m m m m m m k k Z X Z Y A Z X Z X m k 2 4 3 = , 2 = For 2 2 2 ïƒș ïƒș  ïƒč ïƒȘ ïƒȘ                                      B Z X A Z X Z X B Z X A A Z X m m m m m m m m m m 3 2 2 4 4 8 2 = ïƒș ïƒș  ïƒč ïƒȘ ïƒȘ                        ïƒș ïƒș  ïƒč ïƒȘ ïƒȘ          B Z X A Z X Z X B A Z X m m m m m m m m 3 2 2 4 8 =









ïƒș ïƒș  ïƒč ïƒȘ ïƒȘ                   B Z X A Z X Z Z BX AZ X m m m m m m m m m 3 4 3 2 2 2 4 8 =







3 2 3



3 2 2 2 4 8 = m m m m m m m m m BZ Z AX X Z Z BX AZ X    

 





2 2



2 3



3 2 3





2

2m;Z m = Xm AZm 8BX mZm;4Zm Xm AX mZm BZm

X    

Remark 1: The formulas for computation of [Xk :Zk] in kP depend only on [X1:Z1] for

) , (

= x y

P and X1 = x,Z1 =1; i.e., the formulas are polynomials in x(P) and

(7)

Theorem 2: Let  be a field of characteristic not equal to 2, 3 and let E be the elliptic curve

given by the equation E(): y2 = x3  Ax  B and also P = (xm,ym) and

} { \ ) ( ) , (

= x 1 y 1 E  

Q m m  with P ï‚č Q . Given the point P Q = (x,y), if y ï‚č 0 then the y

-coordinate of P satisfies





. 2

) (

) )(

( 2 = = ) (

2 1

y

x x x x x x x A B y

P

y m    m  m  m  m

Proof: Define D = PQ = (x,y).

. =

wehave ), , ( = =

Since

2

1 1

1 x x

x x

y y x

y x D P

Q m

m m m

m

m   

  

  

 

   

) )(

( ) (

= ) (

Then xm1 xm  x 2 ym  y 2  xm  x xm  x 2

) (

2

= ym2  y2  ymy  xm3  x3 xm2x x2xm

B x x x x A y

ym ( m )( m ) 2

2

=    

B x x x x A x x x y

ym = m ( m ) ( m )( m ) 2

2 1  2    

y

x x x x x x x A B

ym m m m m

2

) ( )

)( (

2 =

2

1 

  



 





. 2

) (

) )(

( 2 = Therefore

2 1

y

x x x x x x x A B

ym    m m   m m 

FAST COMPUTATION METHOD FOR X e AND Ze :

We describe the fast computation method to compute X e and Ze suggested by P. Smith for

(8)

ambiguity of adding or doubling at each stage right from [X1:Z1] by using the above recursive

formulas.

For any integer e, we have the binary expression given as

0 = 1, = , 2

= 0

0 =

i i

t

i t

t

x x x

e   or 1, for i ï‚ł 0.

Let k i

i k

i

k x

e =  2 

0 =

, for 0 ï‚Ł k ï‚Łt, then et = e,e0 =1.

Theorem 3:

ïƒź  ïƒŹ

 

 

1. = if 1 2

0 = if 2

=

1 1 1

k k

k k

k

x e

x e

e

Proof: We have = 2 1 1

0 = 1

i k i k

i

k x

e 



 

1 1 1

0 =

2 2

2

=  i ki  k k k k

i

x x

1 0

= 2 2

=  i ki  k

k

i

x x

= 2ek  xk1.

ïƒź  ïƒŹ

 

 

1. = if 1 2

0 = if 2

= Therefore

1 1 1

k k

k k

k

x e

x e

e

Remark 2:

ïƒź  ïƒŹ

  

  

1. = if 1) 2(

0 = if 1 2 = 1

1 1 1

k k

k k

k

x e

x e

e

 ïƒŹ 

1= 2 1 if  = 0

k k 1

x e

(9)

Remark 3: [Xe:Ze] are computed by evaluating [ : ]

k e k

e Z

X for k = 0,1,..., t by using recursive

formulas for [ 2 1: 2 1]

k e k

e Z

X and [ 2 : 2 ]

k e k

e Z

X .

Remark 4: For any point M E(n) where n = pq , we have the point

) mod , mod (

= M p M q

M as E( pq) E( p) E(q) and we have the formulas in Theorems

1 and 3 are valid for M on E( pq) . [1][4][11]

Notation: For any point M  E(n) we write as M = (M x,M y) and for any integer k , Xk

the point kM is written as kM = (M k,x,M k,y) .

4 SIGNATURE SCHEME ON CRYPTOSYSTEM WITH ELLIPTIC CURVES:

Let message be a point M = (M x,M y) on an elliptic curve E(n):y2 = x3  Ax  B mod n , where

pq

n = and let #E(n) = Nn, (e,Nn)=1 with d such that ed ï‚ș1mod Nn and (M ,n,e) is public.

The aim of cryptanalyst is to obtain signature dM = (M d,x,M d,y).

The cryptanalyst adapts the following steps in the signature scheme :

Let k be an integer such that (k,e)=1 and (k,Nn) =1, then there exist r,s such that kr es =1.

Let M ï‚ą= kM = k(M x,M y) = (M k,x,M k,y) and Mï‚ą may be evaluated using point addition with

projective coordinates.

Obtain the signature on M ï‚ą as follows:

dM ï‚ą = (M dï‚ą,x,M dï‚ą,y)mo d n and let Cï‚ą = dM ï‚ąmod n;

Evaluate the point rCï‚ą and sM using the point addition with projective coordinates.

The cryptanalyst obtains dM as follows:

We have

1 = es kr 

d eds

(10)

n N d

s

krd  ï‚ș mod

. integer some

for )

(

= krd s N t t

d   n

] ) [(

= addition

point the

Therefore dM krd  s  Nnt M

= (k r d s)M

= krdM sM

= r(dM ï‚ą)sM .

= rCï‚ąï€« sM .

Using step 4 point dM is obtained by affine addition of rCï‚ąï€«sM .

Example: Let n = pq =143 and M = (1,122) be a point on Elliptic curve

143 mod 8 3 = : )

( 143 y2 x3  x 

E  and for Nn =# E(143)=144 , take e = 5, as (5,144) =1.

Then we have (M ,n,e) , the public key and d the secrete exponent such that

n N

ed ï‚ș1mod .

The cryptanalyst obtain the signature dM as follows:

Let k = 7 be an integer such that (k,e) = (7,5) =1, then there exist integers r = 2,s = 3

such that kr es =1.

Consider M ï‚ą= kM = 7M and Mï‚ą is evaluated by using point addition with projective

coordinates as follows:

0 1 2

2 1 2 1 2 1 = 7

    

1; = 1, =

0

0 e

e Z

X

83, = 8

) (

= 3

0 0 2

2 0 2

0 0

2e Xe AZe BX e Ze

X  

48; = ) (

4

= 3 2 3

2e Ze Xe AX e Ze BZe

(11)



 



2 1 0 0 1 0 0 0

1 0 1 0 0 1 0 0 1

0 2 1

4 =

= e   e e  e e   e  e  e e   e e 

e X BZ Z X Z X Z X X AZ Z

X

131 =





= 81.

=

= 2

0 1 0 1 0 0 1

0 2

1 e e e e e

e X Z X Z

Z X Z

Z    





8 =131.

=

= 3 1

0 1 0 2

2 1 0 2

1 0 1) 0 2( 1

1     



 e e e

e e

e X X AZ BX Z

X





= 64.

4 =

= 3 1

0 2

1 0 1 0 3

1 0 1 0 1)

0 2( 1

1      



 e e e

e e e

e Z Z X AX Z BZ

Z



 



2

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

1 2 2

4 =

= e   e e  e e  e  e  e e   e e 

e X BZ Z X Z X Z X X AZ Z

X

58. =





= 3.

=

= 2

1 1 1 1 1 1 1

1 2

2 e e e e e

e X Z X Z

Z X Z

Z    

143. mod 67 = 3 58 = = ) (7 Therefore

2 2

e e

Z X M x

: follows as ) (7

Torecover y M





8 = 79.

=

= 3

1 1 2

2 1 2

1 1 2 1

2 e e e e e

e X X AZ BX Z

X   





=16.

4 =

= 3

1 2

1 1 3

1 1 1

2 1

2 e e e e e e

e Z Z X AX Z BZ

Z   

143. mod 139 = 16 79 = =

) (6

1 2

1 2

 

e e

Z X M x

139. = ) (6 = and

67 = ) (7 = 1, = ) ( =

Forx x M xm x M xm1 x M



2 (  )(  ) (  )2



(12)

T h e r e f o r eM ï‚ą= 7M = ( 6 7 ,2 3 )= ( 6 7 , 1 2 0 ) .

Cryptanalyst obtain the signature on M ï‚ą as

(129,37). = ) , ( =

= dM M d,x M d,y

Cï‚ą ï‚ą ï‚ą ï‚ą

Now the cryptanalyst computes rCï‚ą,sM ï‚ą as follows:

2(129,37).

= 

ï‚ą

C r

1. = and 129 =

0

0 e

e Z

X





8 =107.

=

= 3

0 0 2

2 0 2

0 0 2

1 e e e e e

e X X aZ bX Z

X  





= 42.

4 =

= 3

0 2

0 0 3

0 0 0

2

1 e e e e e e

e Z Z X aX Z bZ

Z  

40. = 42 107 = =

1 1

e e

Z X x

have we 1, = and 1 = 40, =

For xm x xm1





47. = 2

) ( )

)( (

2 =

2 1

y

x x x x x x x A B

ym    m m   m m 

(40,47). =

Therefore rCï‚ą

3(1,122). =

3

= M

sM

1. = 1, =

0

0 e

e Z

X





8 = 83.

=

= 3

0 0 2

2 0 2

0 0 2 1

0 e e e e e

e X X aZ bX Z

X   





= 48.

4 =

= 3

0 2

0 0 3

0 0 0

2 1

0 e e e e e e

e Z Z X aX Z bZ

Z   



 



2

4 =

= X bZ Z X Z X Z X X aZ Z

(13)

131. =





= 81.

=

= 1 2

0 0 0 1 0 1

0 2

1   

 e e

e e e

e X Z X Z

Z X Z

Z

143. mod 74 = 81 131 = =

1 1

e e

Z X x

have we 106, = 48 83 = and

1 = 74, =

For xm x xm1





59. = 2

) ( )

)( (

2 =

2 1

y

x x x x x x x A B

ym    m m   m m 

(74,59). =

Therefore sM

The cryptanalyst obtain dM = rCï‚ąï€«sM as follows:

By using point addition with affine coordinates,

rCï‚ąï€« sM = (40,47) (74,59) = ( 4 1 , 6 2 ).

Therefore the cryptanalyst retrieve the signature as (41,62) .

CONCLUSION:

In the signature scheme on Cryptosystem with elliptic curves implemented by point addition with

projective coordinates for P = (x,y) with projective coordinates (X1,Y1,Z1) it requires only four

additions, six multiplications and two squarings with no inversions in the computations of

] :

[X k Zk at each consecutive addition leading to the projective coordinates (Xk :Yk :Zk) and the

k k

Z X kP

x( ) = is obtained with one inversion and the corresponding y-coordinate is recovered with

(14)

leads to the computation of [X k :Zk] with no ambiguity of adding or doubling at each stage right

from [X1:Z1] by using the recursive formulas.

REFERENCES:

Journal Papers:

1. Neal Koblitz “ Elliptic Curve Cryptosystems" Mathematics of Computation, 48: 203-209, 1987.

Books:

2. Neal Koblitz “A course in number theory and cryptography ISBN 3-578071-8,SPIN 10893308 ".

Chapters in Books:

3. V.S. Miller “ Use of Elliptic Curves in Cryptography". In H.C. Williams, editor Advances in Cryptology - CRYPTO 85, Volume 218 of Lecture notes in Computer Science, 417-426, Springer-Verlag, 1986.

4. K. Koyama, U.M. Maurer, T. Okamoto and S.A. Vanstone “ New public-key Schemes based on elliptic curves over the ring n.’’ In J. Feigenbaum, editor

Advances in Cryptology - CRYPTO 91, Volume 576 of Lecture notes in Computer Science, 252-266, Springer-Verlag, 1991.

5. N. Demytko “ A new elliptic curve based analogue of RSA". In T. Helleseth, editor Advances in Cryptology - EUROCRYPTO 93, Volume 765 of Lecture notes in Computer Science, 40-49, Springer-Verlag, 1994.

Books:

6. J. Buchmann“Introduction to cryptography" , Springer-Verlag 2001.

Chapters in Books:

(15)

(ICICS’97), vol.1334 of Lecture Notes in Computer Science, pp.302-313, Springer-Verlag, 1997.

Books:

8. J. H. Silverman. The Arithmetic of Elliptic Curves, volume 106 of Graduate Texts in Mathematics. Springer-Verlag, New York, 1986.

Journals:

9. J. H. Silverman. Elliptic curves and cryptography. In Public-Key Cryptography, volume 62 of Proc. Sympos. Appl. Math., pages 91-112. Amer. Math. Soc.,

Providence, RI, 2005.

Books:

10. J. H. Silverman and J. Tate. Rational Points on Elliptic Curves. Undergraduate Texts in Mathematics. Springer-Verlag, New York, 1992.

11. Lawrence C. Washington “Elliptic Curves Number Theory and Cryptography" 2nd edition, CRC press.

12. Jeffery Hoftstein, Jill Pipher, Joseph H. Silverman, “ An Introduction to

Mathematical Cryptography", Springer.

Jornals:

13. P.Smith, “LUC Public-key encryption”, Dr. Dobb’s Journal(Jan 1993), 44-49.

References

Related documents

In French, the verb ending will change according to the French subject pronoun.. Avoir

Positive S values in all of the wells in individuals forest stands provide downward trend of groundwater level in wells of G-ditch catchment in Marianka forest district in

The results of this research is indicated that the sale promotion factors “Offer member card for discount” , “Extend warranty period” , “Bundled with scanner” ,

The transgene positive plant had substantially less lignin and G monomer, relative to the negative plant, and this lead to less lignin crosslinking, greater flexibility and

Whilst both preference-based measurements were able to discriminate between the severity stages of OPMD and oral cancer, the EQ-5D-3 L utility values were always lower than the

Assuming low incidence and relatively high diabetes mortality, total diabetes prevalence (diagnosed and undiagnosed cases) is projected to increase from 14% in 2010 to 21% of the

communication, if any, to using a music therapy approach to teach both verbal and non-verbal communication skills in a classroom setting with children diagnosed with moderate

Mechanical design is critical since large mass is moved in this type of web guide; especially the       mechanical design requires consideration for the speed, acceleration,