Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Volume: 4 Issue: 3
ISSN: 2321-8169
226 - 231
______________________________________________________________________________________
T. Surendra
Department of Mathematics,
Andhra University,
Visakhapatnam 530 003, India
panuradhakameswari@yahoo.in,
*
*
Abstract - The Diffie - Hellman problem may be used securely over the multiplicative group Fp, (Z/nZ) and the group of rational points on an
elliptic curve over a finite field. These groups involve large key sizes or expensive arithmetic operations. In the paper [17] paper we considered
the group of Lucas sequences and described the generalization of discrete log problem with the group of Lucas sequences and adapted the babystep giant-step algorithm to the generalization and for the computations we gave an algorithm to fast computing methods for lucas sequences
based on the idea proposed by P.J.Smith. In this paper we consider the group of Lucas sequences and implement the pollard rho algorithm to the
generalization of discrete log problem to the group of Lucas sequences. For the computations we implement with fast computing algorithm.
Key words - Discrete Log Problem, Lucas Sequences, Pollard rho algorithm.
__________________________________________________*****_________________________________________________
I.
INTRODUCTION
*
Definition 1. Let G be a finite group of the form (Z/nZ) or
*
Fq and b be a fixed element of G, if y is any element of G of
x
the form y=b for some x. Then the problem of finding the x
given y is called the discrete logarithm problem. We write
y
x=logb and x is called discrete logarithm of y to the base
b.[9]
*
*
Example 1. Let G=Z17and take b=3 the generator of Z17
*
then the discrete log of 13 to base 3 in Z17 is x such
that3x13(mod17), note for x=4, 3413(mod17).
*
Example 2. Let G=Zp for p=1999 and take b=3 the
generator of G then the discrete log of 1452 to base 3 is x
such that 3x1452(mod1999). Note in this example
computing that x=789 is difficult but computing
37891452(mod1999) is easy by adapting the modular
exponentiation method.
Diffie-Hellman key exchange: The Diffie-Hellman
protocol works as follows. A and B wish to agree on a
common secret key to communicate over an insecure
channel. A chooses a large prime p and an integer g such
that 2pp-2 and an integer a{0,1, p-2} randomly, then
a
he computes g mod p and makes (p,g,ga) public. B chooses
b
an integer b{0,1, p-2} randomly, then he computes g
mod p and makes (p,g,gb) public. Then they agree upon the
ab
k=g modp as the common shared secret key.
226
_______________________________________________________________________________________
ISSN: 2321-8169
226 - 231
______________________________________________________________________________________
To compute the discrete log there are algorithms likes Trial
exponentiation, Shanks Baby -Step Gaint-Step Method,
Pollards rho method, Pohlig- hellman method, Index
calculus method etc. The earliest method for finding the
discrete logarithm x from =gx(DLP) is to check whether
x=0,1,2,3, satisfy DLP. If one of these x values satisfy
then Discrete Logarithm is found. This is the Trial
exponentiation. It needs enumeration of x-1 multiplications
and x comparisons in the group and the three elements x, g
x
and g need to be stored. [2, 4]
Example 3. The Discrete Logarithm of 3 to the base 5 in
*
(Z/2017Z)
with
enumeration
of
1029 multiplications modulo 2017 yields x=1030.
To compute the discrete log there are algorithms likes
Trial exponentiation, Shanks Baby -Step Gaint-Step
Method, Pollards method, Pohlig-hellman method, Index
calculus method etc. In this section we recall the Pollard rho
*
*
method for discrete log in Fp or (Z/nZ) . Shanks Baby-step
Giant-step method require more storage approximately |G|
group elements for finding solution of discrete log Problem
where as Pollard rho method requires less storage than the
storage required in Shanks Baby-step Giant-step method.
The running time of both the methods is same, namely
O |G|. The pollard rho method is based on the following
theorem on groups.
Theorem 1. Let G be a group and g be any element of G of
order
n
then
for
any
integers
k,
l
l
k
g =g iff lk mod n.
The Pollard rho algorithm : To determine discrete log to
the base in the group G with generator . Divide the group
G into three pairwise disjoint subsets G1, G2 and G3 with G
= G1G2G3. Let f:GG be defined by
if G1
f ( ) 2 if G2
if G
3
i x y
i
xi 1
xi 1 mod n if G1
2 xi mod n if G2
x
if G3
i
and
yi 1
yi
2 y i
mod n
y 1 mod n
i
if G1
if G2
if G3
xy x y
i
x x
i
ik
ik
ik
yi k yi
x x
x ( yi k yi )
( xi xi k ) x( yi k yi ) mod n
i
ik
x
0 =g 0=379186 mod 227.
G=G1G2G3={1,2,3,...75}
{76,77,78,...150}
{150,151,152,...226}.
_______________________________________________________________________________________
ISSN: 2321-8169
226 - 231
______________________________________________________________________________________
TABLE I
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
186
69
207
161
100
12
36
108
87
78
182
192
225
175
10
30
90
79
79
80
80
80
160
161
162
98
196
166
166
166
166
166
167
168
0
1
1
2
3
6
6
6
12
24
48
49
50
51
52
52
52
17
155
110
104
18
171
110
105
19
133
110
106
20
210
220
212
21
12
220
213
Here collisions are found for 5=21 with gcd (y21y5,
226)=1=gcd (207, 226)=1. To compute x we must solve the
congruence (x5 x21) (y21 y5)x (mod 226), substitute the
collision value we have
(160-220)(213-6)x (mod 226).
-60207x (mod 226)
166(207)-1x (mod 226)
166X107x (mod 226)
17762x (mod 226)
x=134
Therefore x=134 is the discrete log of 3 to the base 26 in
(Z/227Z)*.
Observation: Here if we continue to find iterations for
i=0,1,2,... we found collision for 5=21 with
(y21 y5, 226)=1 and solution exist for DLP, where as if we
check for collision for i=2j, j=0,1,2,3,..., collision exist for
16=32. So we can reduce the number of iterations and we
can reduce time to find solution. For the first match if
solution does not exit for the discrete log problem, we can
find the solution, instead of choosing another initial x 0 if
there occurs one more collision provided that the y s
i
difference of corresponding collisions must be coprime.
a
a
and its conjugate
we
2
2
Vn (a, b) n n
n n
U n (a, b)
N p1e1 ... prer , pis odd primes and define the function
r
e 1
S(N)=lcm pi i ( pi ( )) .[8, 11]
pi i 1
Theorem 2 For
then
228
IJRITCC | March 2016, Available @ http://www.ijritcc.org
_______________________________________________________________________________________
ISSN: 2321-8169
226 - 231
______________________________________________________________________________________
B. Group Structure on Lucas sequence
Let N be an integer, and a be an an integer such that for
=a2-4 the gcd (, N)=1. Denote the pair (Vk(a,1) mod N,
Uk(a,1) mod N) by (V K,Uk) and consider the set L(,N) =
{( Vk, Uk) mod N: k0} then for all (Vk,Uk), (Vm,Um)
L(,N) we define an operation on L(,N) as follows :
(V ,U )(V ,U )=(V
,U
)
k k
m m
k+m k+m
Theorem 3 L(,N) forms an abelian group with respect to
operation defined as (V ,U )(V ,U )=(V
,U
)
k k
m m
k+m k+m
with (V ,U ) as the identity and for any (V k,,Uk)L(,N),
0 0
(V(S(N)-1)k, U(S(N)-1)k ) is the inverse of (V ,U ).
k k
III. FAST COMPUTATION METHOD FOR V
x 2
t 0
ek xi 2
t 0
k i
t i
V2c Vc 2
2
Vc V2c+1
Vc V2c
else c2c
c 2c1
V2c+1 V1 Vc VcVc V1
group
of
Lucas
sequences
for
then
if x k 1 0
2ek
2ek 1 if x k 1 1.
ek+1 =
Algorithm:
Step 1: Write the binary expression of e as
e xi 2 t i , x0=1
t 0
Vc V12 2Vc 2
229
IJRITCC | March 2016, Available @ http://www.ijritcc.org
_______________________________________________________________________________________
ISSN: 2321-8169
226 - 231
______________________________________________________________________________________
x {1,2,...S(N)}
0
2
Example 5: Let N=17, a=5 and b=1 then =a -
number
and
calculate
relation
V 2 4b 2
.
Then
take
(V,U)=
if G1
f ( ) if G2
V if G
3
1.
2.
3.
4.
with
xi 1
xi 1 mod S ( N ) if G1
2 xi mod S ( N ) if G2
x
if G3
i
and
yi 1
yi
2 yi
mod S ( N )
y 1 mod S ( N )
i
if G1
if G3
i k myi k
(a,1), U x
i k myi k
(a,1)) )
+my
if G2
i.e.,I=(V,U)...(V,U)(y times)
i
V , we
TABLE II
i
i=(Vi,Ui)
0
1
2
3
4
5
6
7
8
(6,5)
(8,7)
(0,13)
(9,7)
(11,5)
(12,1)
(6,12)
(5,1)
(6,5)
i
2
3
4
5
6
7
14
14
15
i
0
0
0
0
0
0
0
1
1
Here collisions are found for 0=8 with gcd(y8-y0, 16) =1.
To compute m value we have to solve the congruence (x0x8) (y8-y0)m(mod 16)
(2-15)(1-0)m(mod 16)
-13m(mod 16)
m=3.
Therefore (Vm,Um) =(V3,U3) =(8,7)= (V,U).
2
Example 6: Let N=7X11=77, a=8 and b=1 then =a -4=60,
_______________________________________________________________________________________
ISSN: 2321-8169
226 - 231
______________________________________________________________________________________
the group G. We find the group elements (Vi,Ui), by using the
following recursion formulas
1. V2n(a,b) = (Vn(a,b))2 2bn
2. V2n-1(a,b) = Vn(a,b)Vn-1(a,b) abn-1
3. V2n+1(a,b) = a(Vn(a,b))2bVn(a,b)Vn-1(a,b) abn
4. (Vn(a,b))2= (Un(a,b))2+4bn and the operation on
L(, N).
Select a random x {1,2,...30}. Let x =7;
0
0
0=(V ,U )=(15,36).
7 7
G=G1G2G3={(2,0),(8,1),(62,8),(26,63),(69,34),
(64,55),(58,21),(15,36),(62,36),(19,21)}
{(13,55),(8,34),(51,63),(15,8),(69,1),(75,0),
(69,76), (15,69), (51,14), (8,43)}{(13,22),
(62,41),(15,41),(58,56),(64,22),(69,43),(26,14),
(62,69),(8,76)}.
The stored triplets are given as
[3]
[4]
[5]
[6]
[7]
[8]
TABLE III
i
i=(Vi,Ui)
0
1
2
3
4
5
6
7
8
9
(15,36)
(62,36)
(19,21)
(13,55)
(13,22)
(26,63)
(69,34)
(64,55)
(58,21)
(15,36)
i
7
8
9
10
20
20
21
22
23
24
i
0
0
0
0
0
1
1
1
1
1
Here collisions are found for 0=9 with gcd(y9-y0, 30) =1.
To compute m value we have to solve the congruence(x0
x9)(y9 y0) m(mod 30)
(7-24)(1-0)m(mod 30)
-17m(mod 30)
m=13.
Therefore (Vm, Um) =(V13,U13) =(15,8)= (V,U).
V CONCLUSION
[9]
[10]
[11]
[12]
[13]
[14]
[15]
[16]
[17]
_______________________________________________________________________________________