Арифметические алгоритмы в криптографии
Выбери формат для чтения
Загружаем конспект в формате pdf
Это займет всего пару минут! А пока ты можешь прочитать работу в формате Word 👇
T
V
/
*
.
<*
-3
:5
-.?
8/
-
5
/5
7/
-
(
)
)
CH
F
F
8
+
¤
¥
¤¥
J
X
TWD H
G
T
>
>
* >
@+
;
/
$
R
!
9
5
9
+
+
$
/
)
#
"
¡¢
U
.
'$
£
3 >
=-
-3
:5
8
.
,
T/
3
'
'
7
.
,/
7
3/
*
S
7
'
K
-7
/5
D
D
%
0K
K
<
-3
*
+
5
5
$
/
7+
:
8
:Q
)
)
D
D
"
8 2
/
$
G
C
PC
#
N
.
$
*
=/
;
$
B
5 I
/
?' $
.+
:
.
9
-$
G
C
CG
D
;
./
3?
C
C
GC
E
CH
G
EF
E
CD B
A
+
D
'9
3@
D
: D
.
&+
C
C
GC
B
$
/
$
5
&+
<
7
'
$ O
-9
M
$
3*
K JF
L
0 8
&+
?' $
D
5 I
/
$
$
.+
;
3
<
,/
= 2
.
$
&+
<
C
0 E
L
K
0K
K
.
CD
CH
D
60×88 1/16
*
+
+5
$
+
'3?
$
9
7/
$
*/
/
;/
-
&
3
.
=
>
5
'.*
$
+
/
;/
-
7/
-
/5
/
7
.
$
+
$
9
:5
.
8
.
,
=/
;/
'
7
(
<*+
'
*
/
7/
8$
%7
-.
$
*)
+5
,+
-3
&
'3
4+
6
"
*
/
&
%
-*
3
2
0
1
-.
$
*)
,+
'(
%&
$ #
!
"
!
{
}
{
{
{}
{
{
{
~
{}
{
{
{
|
{
|{}~z
{
~
{
{
{
{
{
{
}
{
{
}
{
{
~
}
{
}
~{
p
p
o
n
l
l
p
o
xn
t
l
m
j
y
r
tr
l
wx
o
q
p
no
lr
j
lu
t
hv
h
r q
s
l
lm
l
jk
h g
i
Z
ef
cd
ab
`^
^ ]
_
\
Z
[
Y
5
(
(
(
(
(
(
(
(
(
(
(
(
(
(
5
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
(
£
(
¡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
k
h
b
%
"
M (n)
D(n)
n
n
b
E
E
A
"
(
+
{
{
$ £
%&
"
$
C
y
E
"
h
%
C&
k
E%
h
m
%
"
k
E
a
CE
d
"
M
O(log N log M )
E%
'"
#
j
$
h'
'
n
"`
$
E
a c,
a = c,
E
m
%
"
"
#
(c/a)
1
− 1 c · d · n ct
f (n) = d · n ·
6
· t·
= O(ct ) = O(nloga c ),
c/a − 1
a
a c/a − 1
a
j
"
%$
$ £
hy
"
"
j
l
a < c.
'
C
c'
h
m
!
a>0 c>0 d>0
f (n) = c · f ( na ) + d · n
%
bD
%
j
"
&
!
%
$
%
$
(
"
1
f (n) + b · g(n) + d · n.
a
E
#
E
E
$
#
k
$
(
%
~
}
b+d
· g(n) = O(g(n)).
f (n) 6
1 − 1/a
"
*
N
$
E
"
'
h
a
u
!
"
!
"
"
#
f (1) = d
E
a
&h
O(log N )
%
'd#
k
S
X
p
Z
*
W
UV
q
a = c,
$
E
a
$
"
n = at
t−1 i
t i
X
X
c
c
f (n) = d · n ·
+ d · ct = d · n ·
,
a
a
i=0
i=0
O(n),
f (n) = O(n log n),
O(nloga c ),
$
"
%
d
"
a > c,
E
k
E
E
a
%
C$
%&
d
b
E%
D
$
d·n
f (n) 6
= O(n),
1 − c/a
f (n) = d · n · t = d · n · log n,
a
'
k
b
E
"
y
d
E
n = at
E%
w
E
'h
f (n)
n>1
E
"
%
#
f (n) 6
(
$
#
%
V
%
$
#C
c'
h
k
E%
h
k
E
a
CE
k l
U
(
W
q
q
(
c
"
k
E
%
E
'd
`
n
n
a·f
6f a·
= f (n),
a
a
N
n 6 f (n) 6 O(n2 ).
1/N
R(n)
M (n) ≈ D(n) ≈ S(n) ≈ R(n).
1
−N
1
1
−
N
N +1
$
$
j
"
kb
"
Ej
%
d
$
"
CE
"
%
k
"
a
E
&
E
`
&
(
z
l
$
$
$
$
"
E
"
E
$
h
by
"
$
E
#
"
"
E
a
%
E
'
$
$
"
d
"
#
'
"`
'
C$
%
'$
s
'
"
b$
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
#
'
"
(
"
E
dc
E
E
"
#
2
1
1
(1 − δ) −
(1 − δ)2 =
(1 − δ 2 ).
N
N
N
"
E
b
$
E'
j
i
C
C
#%
"
'd
(
'
E
x(i + 1) = 2x(i) − N x(i)2 .
C
CE
(
C
%
'$
(
'
"
,
$ £
hy
"
d
x(0), x(1), . . .
"
E
z
$
"
E
"
E
¢
E
$
E'
d
%
C
%
$
"
k
1/N
a
%
h
"
C
#%
$
"
E
a
%
E%
'
c
"
c
"
i
h
N
1
2
k
$
$
#
E
a
$
'
(
b
E
#
j
j
δ<
"
j
$
"
E
m
Cy
m
"
= A B1
%# y
%
`
m
E
E
d
%
m
C
"
$
"
E
"
E%
'
'
R(n) ≺ M (n)
M (n)≺S(n)≺R(n)≺M (n)
j
d m
"
%&
E
E'
$
C
#%
#
A
B
b
C
&
'
b
a
l
E
x(0)
"
$
& g
R
&
%
"
$
E
"
"
$
$ v
$ B
log n
¤
4
,
$
E
k
R(n) ≺ D(n)
D(n) ≺ M (n) + R(n) ≺ R(n)
R(n) ≺ D(n)
Cy
(
R(n) 6 R
k
"
%&
`
bD
E
O(n2 )
'
m
d
'
E
£
x(i + 1) = 2x(i) − N x(i)2 =
E
£
k
E
C
h
b
E
£
C
E
E
a
(1 − δ)
!
d m
!
C
#
C$
k
k
E
1
N
c
(
dc
&
%
$
x(i) =
(
" m
'
E
. . . , x(i), . . .
R(n) ≺ M (n)
A = 2 k A1 + A 0 ,
A
n = 2k)
B = 2 k B1 + B 0 .
AB = (2k A1 + A0 )(2k B1 + B0 ) = 22k A1 B1 + 2k (A0 B1 + A1 B0 ) + A0 B0 =
= (22k + 2k )A1 B1 + 2k (A0 B1 + A1 B0 − A0 B0 − A1 B1 ) + (2k + 1)A0 B0 =
= (22k + 2k )A1 B1 + 2k (A0 − A1 )(B1 − B0 ) + (2k + 1)A0 B0 .
c > 0,
log2 3 =
Na
/
5
4/
1
2
1/
6
4
5
,,
5
4/
1
2
1/
-+
/
6
-
,
(
(
&
¤
z
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k
X
E
k
'
1 + blogR N c
i=1, . . . , k+2
"
{
{
}
e
,
%
k
x2 = x + 1
N >0
S
fk+1 = fk + fk−1 > Rk−2 + Rk−3 = Rk−3 (R + 1) = Rk−3 R2 = Rk−1 ,
z
a
%
E
C
h
E
k
E
a
"
#
{
√
5
E
C$
k
$
k
$
"
C
#%
%
h
a
R= 1+2
k=2
&
%
h
&
E
b
"
C
#%
C
h
C
l
'
"
V
&
"
f0 , f1 , . . .
%
O(M (n)(k + 1)) = O(M (n) log n) 6 O(n2 log n).
m
"
%
'$
(
b$
%
"
E
h
a
f0 = 0 f1 = 1 fk = fk−1 + fk−2 k > 2
k >1
fk >Rk−2
n
%
k l
i=1, . . . , k
rk+1 = 0
m
E
a
d
(
E
j
l
fi 6rk+1−i
&
bD
%
j
"`
"
E
E'
A > r−1 > fk+2 > Rk
k + 1 6 1 + blogR N c
`
C
'
"
ri−2 =di ri−1 +ri
E
(
u
B 0
+
k
E
iN
'
Cy
C
" _
`
u
xi A + y i B = r i .
k
E
E%
'
'd
a
z
E
u
a
h
'
0 6 A, B < N
$
&
E
E
h%
m
CE
j
#
E
y
(
C
h
E
E
C
"
&
k
E
#
E
i=0
#
k
E
h
£
E
$
c
'
%
k
h
d
Ej
'
h
(
i = −1, 0
C
E
a
%
h
d
'
E
"C
h
E
b
C$
"
E'
$
'
"
Cy
h%
C$
%
R
#%
j
$
xi A + yi B = (xi−2 − di yi−1 )A + (yi−2 − di yi−1 )B =
= (xi−2 A + yi−2 B) − di (xi−1 A + yi−1 B) = ri .
#
d
$
"
k
$
"
%#
"
"
%&
kj
b
%
g
S
di = bri−2 /ri−1 c
ri = ri−2 − di ri−1
xi = xi−2 − di xi−1
yi = yi−2 − di yi−1
i=i+1
d
E
z
"
$
m
&
E
E
bh
%
$
b$
%
"
j
l
r−1 = A r0 = B
x−1 = 1 y−1 = 0 x0 = 0 y0 = 1
i=0
ri > 0
E
E
"
E
E
#
%
E
%h
$
"
E
a
%
xi
" m
&h
'
g
%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%#
"
%
b
$
"
E
a
%
"
%
C
~
di = c−1
mod mi ,
i
b
%
E
j
by
$
R
'd#
E
bE
`
"
bD
m
E
E
h
%
&
'
"
u
'
C
#%
"'
z
h
$
j
E
#
E
= O(k 2 M (b) + kTXEA (b))
'$
E
C
E
a
b$
%
"
j
ci di ui mod M.
"
%d
C
`
E
$
c
"
kb
b
j
k
E
%+
$
#
l
~
ci = m1 . . . mi−1 mi+1 . . . mk = M/mi ,
#
j
$
"
j
#
E
k
E%
j 6= i,
%
E
E
"'
b
%
`
TXEA (b)
Zmi log mi =b
$
#
k
&h
%
b
%
'$
s
'
(O((k − 1)M (b)) + TXEA (b)) + M (kb) =
E
O(M (kb) log k + kTXEA (b))
u
E%
j
C
h
#
&h
$
ci di ≡ 0 (mod mj )
$
E
y
%h
'd#
m
dc
E
E
i = 1, . . . , k,
"
`
C
#%
(
"
E
%
&
E
m
%
k l
M
a
(
C$
g
'
"
"
dc
E
#
ci di ≡ 1 (mod mi ),
'd#
%
E
d
h
a
k
C
dh
h
%&
k
E
u
k
h
k
$
"
C
#%
k
E
`
&
'
h
i=1
k
X
%
C
'
"
E
#
&
%
h
a
u ≡ ui (mod mi ),
mi
%
$
%$
'
`
E
E
u=
C
k
C
#%
"
B
i=1
M = m 1 m2 . . . m k
(u1, u2, . . . , uk )
(
E
k
X
C&
h
_
%
k
i = 1, . . . , k
"C
'
"
$
C
k=2
u
c = c · mi
d = c−1 mod mi+1
q = d(ui+1 − u) mod mi+1
u = u + qc
u
i = 1, . . . , k,
/
5
4/
1
2
1/
6
4
5
,
/
/
-+
-
,
f (x) = (x − b)
{
n−1
X
i=0
pn−i−1 x
i
E%
#
&
E
k
f (x)
+ f (b).
"
$
bi =
n−1
X
j=0
ai ω ij ,
C
0 6 i 6 n − 1.
a = (a0 , a1 , . . . , an−1 ) ai ∈ R
F (a) = b = (b0 , b1 , . . . , bn−1 )
z
b
%
"
>
E
n
~
`
"
E
%
&h
s
!
z
b
%
b
E%
'
j
j
%d
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
&
D
m
z
$
h%
$
'
k
"
%# y
j
{
}
>
{
}
>
{
~
{
{
{
{
m
b
%
E
k
E
h
a
c
E
%
k
h
%h
'
g
"
%&
"
¢
>
z
E
#
!
!
!
Pn
,
Qn
= a1 +
l
m
a
E
&
E
"
$
B
#
(
(
(
"
#C
h
%
E
'
d
E
k
s
k
h
c
%
h
d
'
E
d
%
k l
1
Pn Qn−1 − Pn−1 Qn = (−1)n n = 1, 2, . . .
Pn
Pn−1
Qn−1
'
E
$
$
E
'
{
`
m
"j
(
E
E
$
"
j
1
,
'd
%
w
[a1 , a2 , . . . , an ] =
}
−
¤
(
$
h
c
"
'
%
`
E
k
E
`
#
a1
1
{
Pn
Qn
Pn
Qn
|{
(
#
h'
(
$
$
"`
'
(
D
E
"
$
¢
{
f
$
D`
E
" m
j
d
dk+1
1
.
[dk+1 , . . . , dn ]
(
1
[d1 , d2 , . . . , dn ] = d1 +
;
[d2 , . . . , dn ]
1
;
[d1 , d2 , . . . , dn ] = d1 , d2 , . . . , dn−2 , dn−1 +
dn
d1 , d2 , . . . , dn
(
dc
b
E%
C
"
E
dc m
%y
$
"
d
"
... +
(
m
"
E
#
"
h
d3 +
(
k = 1, . . . , n − 1
2
&
%y
£
$
d2 +
{
%
k l
n
1
'
"
"
#
[d1 , d2 , . . . , dk+1 ]
A = r−1 , B = r0 , r1 , r2 , . . . , rk
rk+1 = 0
ri−2 = di ri−1 + ri
i = 1, . . . , k
(A, B) = rk
d1 , d2 , . . . , dk+1
{
$
E'
A
= d1 +
B
B A>B
rk−1 = dk+1 rk
A
I
N
N
N
L
L
L
ML
I
>
~
{
a1 , a2 , . . . , an , . . .
n = 1, 2, . . .
n = 2, 3, . . .
Xn−2
.
Yn−2
Pn
1
Yn−1
a1 Xn−1 + Yn−1
= a1 +
= [a1 , a2 , . . . , an ] = a1 +
=
,
Qn
[a2 , . . . , an ]
Xn−1
Xn−1
Xn−2
.
Yn−2
n = 1, 2, . . .
n = 1, 2, . . .
n = 1, 2, .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
E
#
d
$
n
C
+
}
{
{
%
$
Ej
'
k
E
$ m
$
n
an (αn )
E
Cy
b
E
#
E
d
C
α
E%
~
{
{
`
"
$
$ v
E
α = [a1 , a2 , . . . , an ]
α 6= [a1 , a2 , . . . , an ]
a1 , a2 , . . . , an , . . .
[a1 , a2 , . . . , an , . . .]
1
α1
}
Pn
f (an ) =
,
Qn
1
f an +
= α,
αn
Pn+1
1
f an +
=
.
an+1
Qn+1
'"
h
E
E
h
k
E
"
α1
a1 , a2 , . . . , an , . . . ,
α = [a1 , a2 , . . . , an , αn ] n = 1, 2, . . .
{α} = 0
α = a1 +
{
}
α
$
"`
h
$
$ v
Pn
Pn+1
<α<
Qn
Qn+1
"
'
=
a1 , a2 , . . . , an , . . .
n+1
$
"
b
E%
h
k
a1 = bαc
(
>
{
S
n = 1, 2, . . .
#
"
E
'h
£
f (x) = [a1 , a2 , . . . , an−1 , x]
#
{
{
E
Pn
Qn
(
"
b$
[a1 , a2 , . . . , an ] =
%
"
j
l
"
n
{
}
α = bαc + {α}
{α} 6= 0
α
xPn−1 + Pn−2
.
xQn−1 + Qn−2
P1
P3
P4
P2
<
<...6α 6...<
<
.
Q1
Q3
Q4
Q2
(ak + ε)Pk−1 + Pk−2
(bk + δ)Pk−1 + Pk−2
=
.
(ak + ε)Qk−1 + Qk−2
(bk + δ)Qk−1 + Qk−2
z
"
$ B
$
$
1
1
m
C
E
%
k
h`
h
c
/
1/ 0
h
k
/
-+
-
c
h
'
"`
'
D
'd
dc
E
E
h'
C
%
dc
b
E%
'"
$
"`
h
E%
'
"
$
$
h
'
b
"
$
$ v
q
E
#
bD
%
m
m
`
$
z
j
`
a
" B
%
'
$`
b
"
h
'
'd
$
`
z
hj
k
E
'
E
$
%
z
j
E
$
#
hj
%
b
"
EC
E
j
a
z
$
'd
dc
E
#
"
h'
'
"`
'
$
E
'
E
'$
?
{
{
{
>
>
~
{
}
>
(
'
"
}
dc
'd#
E
#
"
h'
'dc
%
C
E
h
k
$
j
#
j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od q)
E
"j
j=0
7
X
j
k
jk
X
X
q−1 X
q−1 X
q−1
q−1
j
k
jk
−1
−1
j(1−k)
ω
=
ω j(1−k) .
q
q
q
q
q
j=1
j=1
Gp =
C
E
E
s
G 6= 0
q−1 q−1
X
q−1
q−1
X
j
−k
−1 X X j
k
j
−k
=
ω
ω
ω j−k .
G=
q
q
q
q
q
j=0
j=0
( 0q )
'
'
E £
h
GF (pm )
"
E
G=
'
b
s
E
a
'd
p
0, a 6= 0,
q, a = 0,
X
q−1 X
q−1
q−1
−1
k
1
j(1−k)
ω
=
q = (−1) 2 q.
q j=0
q
q
k=1
q
G (mod p).
p
p X
X
q−1
q−1
j
j
ωj =
ω pj ,
q
q
j=0
j=0
X
q−1
pj
p
p
pj
ω =
G.
=
q j=0 q
q
( ap )
p
1
1
/
1
1
-+
4
-
(
2
( n1 ) = 1,
( n2 ) = (−1)
( −1
n ) = (−1)
n2 −1
8
t
( n2 )
b
%
;
;
( −1
n )
a
n
t
a = 2 a1
z
C
h%
j
&
%y
m
$
'
"
E'
&h
$
$
y
$
C
#%
m
%
'
'
"`
'
E%
s
z
$
j
$
j
$
b#
"'
"
m
m
"
h
c
E
"
kb
'"
z
$
b
%
C
"
E
"
j
E
`
m
a
%
b
"
&
$
$
$
E
%
E
'd
&
"
#
"
j
'
k
'$
d
E
C
h
E
k
"
%
k'
k
m
j
%
'
k
$
y
j
$
$
%
"
a
E
d
"
E
k
E
a
%
Cy
h%
"
%
$
#
$
E%
$
'd#
h
"
D
'd
d
E
E
a
%
V
U
*
V
`
:<
i
"
#
a
%
h
( %y
C
E
d
'
E
'
>
>
z
(
(
}
z
'
{
{
S
V
h
c
E
%
$
j
k
$
'
'
"
#b
"
"
$
#
E
#
"
u
"
'
"
l
"
$
(
b$
%
"
j
$ l
$
m
$
E'
"
#
C
#%
'
E
"
(m, n) = 1
E
%
k
h
'
%
j
$
"
y
$
c
'
i
by
"
%
h'
qi
k
'
j
a b
k
s Y
Y
pj j i
%
$
k
( ap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