Tải bản đầy đủ (.doc) (66 trang)

LUẬN VĂN THẠC SĨ KỸ THUẬT NGHIÊN CỨU MÃ HÓA DỰA TRÊN IBE VÀ ỨNG DỤNG QUẢN LÝ ĐỀ THI CỦA TRƯỜNG ĐẠI HỌC VĂN HÓA THỂ THAO VÀ DU LỊCH THANH HÓA

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (1.13 MB, 66 trang )




 !"#$%
&'$()*"
"+(,-./+
01234




 !"#$%
&'$()*"
567899:;95<=>5?9:>5@9:>A9
BC?<D2EFGE23E2F
"+(,-./+
'HI.*<,EJ(K K
01234

"'$*

 !"#$%&$'(')
**+,
"#$%
LM95N995

"'!O
& -./$01&
2)3456(*.78#49'6 
:;#')+/&!345!<7=
98'6>8$?'@AB>CD;E


$0$ F/9$ !<*
3:68#49'6$98/
+3:!:89GH
"I7$?;9'6J
 A0K* I.+:HL6"I0MN9
O =P>8$?'@AB
*D& 4'0QR8:7;Q/6
$'0QR:8S#$
345:$HQ&'I:H"I
7J
AE:H*TK$* I0;9
U>8$?'@AB>CDE
*9*VW4;X*913:-%$9/
#)34:#$%
 Hà Nội, ngày 25 tháng 11 năm 2013
 PQRA89

LM95N995

"
SAT69: LU9:
YZ[\]^_\C``````````````````````
YZ[a]bC```````````````````````
]cYc`````````````````````````
d\C>]ce>fgChie>iA[jk``````
d\C>]ce?aCh``````````````````
d\C>]ce>lC>Am^n>o`````````````
YZ[]p^qf```````````````````````
>rbCh[P>s]g]t=>u\vCh=>\[`````````
wwx!$/#;`````````````````

1.1.1. Giới thiệu chung về hệ mật mã…………………………………
1.1.2. Các thành phần của một hệ thống mã hoá………………………
wy>#;-```````````````
1.2.1. Cấu trúc hệ thống mật mã khóa công
khai……………………
1.2.2. Thuật toán mật mã
RSA……………………………………………
1.2.3. Thuật toán trao đổi khoá Diffie-Hellman……………………….
1.2.4. Đánh giá kỹ thuật mật mã bất đối xứng…………………………
wz{&```````````````````
1.3.1. Phương pháp xác thực thông tin bằng mật mã khóa công khai…
1.3.2. Phương pháp xác thực thông tin bằng mã xác thực…………
1.3.3. Phương pháp xác thực thông tin bằng hàm
băm……………….
w|>'04F#;-``````````
1.4.1. Bảo mật trong điện toán đám mây (cloud computing)
………
1.4.2. Mở rộng mô hình mã
hóa………………………………………….
1.4.3. An toàn trước các tấn công vật lý………………………………



$
$
$
w
z
z
z

z
}
}
~
ww
w|
w|
w|
w}
w•
w~
w~
w~
w€
w€


1.4.4. An toàn trước sự tấn công của máy tính lượng tử……………
>rbCh[[P>s]g]td•\‚ƒC^oC>d\C> ……………………
ywx!#;Q&„Q```````````
2.1.1. Khái niệm mật mã dựa trên định
danh…………………………
2.1.2. Ưu thế IBE trong các ứng dụng thực tế…………………………
2.1.3. Hệ thống nhận dạng IBE………………………………………….
yyY')W;-Q&„Q[?G``````````
yz];-Q&D@```````````````
2.3.1. Khái quát về mã hóa dựa trên thuộc tính……………………….
2.3.2. Mã hóa dựa trên thuộc tính chính sách bản mã (CP-ABE)…
2.3.3. Mã hóa dựa trên thuộc tính chính sách khóa (KP-ABE)……
y|S…:[4::†

2.4.1. Các thuật toán sử dụng trong IBE………………………………
2.4.2. Cài đặt……………………………………………………………….
y}M[?G$-/````````
2.5.1. Đánh giá kỹ thuật mật mã khóa công khai……………………
2.5.2. Sự khác nhau giữa IBE và hệ thống khóa công khai truyền thống…
2.5.3. Lợi ích IBE trong các ứng dụng………………………………….
>rbCh[[[P‡ChdcCh>s]t>u\^oC>d\C>?a_]g
>vCh[C````````````````````````
zw?F!/#4*"#!"</`
3.1.1. Xây dựng hệ thống bảo mật dựa trên
IBE……………………
3.1.2. Các bước thực hiện xây dựng hệ thống bảo mật……………….
zy‡Qˆ[?GF!/#4*"#!"
< /      '6  ^9  8  A%  -  F   $ d  „  
yw
yw
yw
yw
yz
y•
y‰
y‰
y€
zy
zz
zz
z|
z~
z~
z‰

z€
|y
|y
|y
|•
|€
|€

}z
}}
}•
}~
$
>-
3.2.1. Mô tả bài
toán
3.2.2. Mô hình hệ thống
3.2.3. Chương trình thử nghiệm
=jYfgC
‹[Y[sf>\]=>a_
N>cYc
V+WXVWKY
\GM \Q$:QG4MQQ Œ; 
\CM[ \:CMQQ
[Q:
AŒ!]•
\ :Ž\ C+4&
‚Y :Ž:‚:$Y d&W
dGM dG4MQQ Œ;Q1
dCM dC:M: >/

dM\ dM:\ #1<L
dMM dM:MQQ Œ1<L
Gd[ G:d[:: xQ1L
•[NM •:Q:[ŽN:
MQQ
ŒHL<*
•N •:Ž:N h/Ž:
>N >4::H4N h/$%*"
[dG\ [:dG4
\
#;Q1!
[M_ [:_•Ž
MQQ•
xŒ!
[MN [::M:$:N$Q: C+4Q„$ˆ[::
[f [:::
f
Y$B!
]d} ]::d:}
C[M C[:ŽMQQQ
:
A!$/Œ$
_M[ _4:M:[:: = 1X
NhN N:hQN$:
$
N=[ N*=:[Ž: IX97
‚\ ‚:\ C!"<%<
‚M\ ‚$:PMP\Q:
MG M::G: hQ„L
M>\ M::>\ #*%

N‘[N N‘
[::4
h/F/QR‘
[::
f‚Y fŽ‚::Y ?D„$„
\GM \Q$:QG4MQQ Œ; 
\CM[ \:CMQQ
[Q:
AŒ!]•
\ :Ž\ C+4&
‚Y :Ž:‚:$Y d&W
dGM dG4MQQ Œ;Q1
dCM dC:M: >/
dM\ dM:\ #1<L
dMM dM:MQQ Œ1<L
Gd[ G:d[:: xQ1L
•[NM •:Q:[ŽN:
MQQ
ŒHL<*
•N •:Ž:N h/Ž:
>N >4::H4N h/$%*"
[dG\ [:dG4
\
#;Q1!
[M_ [:_•Ž
MQQ•
xŒ!
[MN [::M:$:N$Q: C+4Q„$ˆ[::
V!
,?5A=6

Z[9:
89Z[9: LU9:
w ?#9')W[?G zz
y
M[?G$-
/
z€
$
V\]X$^
,?5A=65_95 895_95R` LU9:
3E3 +3D#;!'0 |
wy +3#;*+H •
wz MIW;- ww
w| #xdŽŽ:P>: wy
w} {&*’#;- w}
w• {&QE]\ w•
w~ {&QE*% w~
1E3 “];-”“;-”
“*"##Q9”
y}
yy N'I“;-”$“1<#
Q9”
y•
yz ];*’[?G y~
y| h";*’[?G y‰
4E3 ]#Q9[?G |}
zy >;*"# |•
zz MIW4@ }w
$
"'a$b

];-Q&„Q…[Q:*:Q:4P[?G†')
H:D#;0-/#&Qˆ$0
#-^$0#;-/
$S-%$•Qˆ+
-$LQˆD;MMY-7'IF$0
'6LQˆ')QEFH&$;-/$0
-Qˆ7'6LQˆ!"<SLQˆ-
')'$#
[?GD;4•4D'6LQˆ
@(D2*+,2'*FQB„Q
Q9-$')LQˆ–'D„QF@
K-F$/69)4FD
'6LQˆQE;D[?GSF"*"’'6LQˆ—#
')([?G2-
Q+$02S[?GˆF˜9'f‚Y„
Q')LQˆS[?G="%
@')'[?G-@+
$0@+/1@+
9' &F/?X$#-D@
F"! **+,$0
/'9-F"! ')$0[?G$LQˆ[?G-FI
"I/$/S$@•I$/W&F2)
[?G/H+*+,"%0-
/F+4'-4•49"44F"! 
$+/-%$• F*’'0
w
^<QF8/-™:5A89Qc6dB5eUTfU>L89R;
c9:Tg9:Z[hdi>j6[9klmn>5A>Lh9:Lop9:$qA5PQN9eU5r5UhR;6
"MQ55U95eUE
SAT69:9:5A89Qc6<

PC$/#;-/
PC;-Q&„Q$'F;-$0
;-/
P‡Qˆ;-„Q*"$
SAT69:k6i9RN9:sd4Q5ot9:<
'Iw™x!$/#;-
'Iy™>#;Q'„Q…[?G†
'Iz™‡Qˆ;-„Q*"$
y
O+..
3E3Eu9:j6U9Rndi>dB
1.1.1. Giới thiệu chung về hệ mật mã
]#;…G4†D•#IX!8*"#
C.#;HL<D)40F')
]D&* xQ9*@#–-1
&FF)4-FD'6D@D47/-
')4•4#^F-F";')#&F-74"
* ";…* ')#-";†$D…-
*@#†
OF#:D#-
')8!;…:4†O* x#$/Q9
*78!";…Q:4†^!
F6D•##;*X$#;…+†–-<š
-F";…4ˆW9†')-d$#–QE#1#
;--š*";-$";
=• #;')     9™;  QE H
…: ::4† $;QE*+H…: :
:4†'—*47 4:
1.1.2. Các thành phần của một hệ thống mã hoá
>ww".D#;!'0

47D#;F*W™
PN:H™7/1
PG4™#-;-9#
(
z
P=:™-#;8.-^D#-
;-LQˆFD$09#
P4::H™;;-…#†^ !"#
;-
Pd:4™#-";^7$#-
;;-…4::H†E$0-#;^7#-
…4:H†*7
Ký hiệu:
ND#419*"›…4:H†
D#419*";…4::H†
=D#419-A02D∈=
 -D#;-:

∈G:

™N→
 AD#";'IQ

∈dQ

œ→N
 ™Q

…:


…H††•H$08H∈N
?"N');-*X-=
G
9*";-?"
];-')/DC'6
#)444LQˆ-=
d
F";$')*"
Khoá mật mã
(Key)
Khoá mật mã
(Key)
Thông tin đã
được mã hoá
(ciphertext)
Thông tin gốc
(Plaintext)
Thông tin gốc
(Plaintext)
Thuật toán giải

(Decryption
algorithm)
Thuật toán mã
hoá
(Encryption
algorithm)
_953E3<v6>LwQdS>5=>5?9:di>dBj67oxQ
|
C ;-$";LQˆ-#;')8#

;H…#;-*@#†C $ ; -$";LQˆ
1-')8#;-…
H†=-;--";')1*@#>#;-
-/'FI$0#;H-FQˆ$
H&1<L$$`')F-D#
FLQˆ-Q')0& '64)4
"4'I44F#Qˆ1'F(4'I44
3E1E=di>dBy5eUQ@9:y5UA
1.2.1. Cấu trúc hệ thống mật mã khóa công khai
^S'•##;-K8#;-
*+HQEy-*!;-$";--
D-')4x* …4*:Nf†$-K9')1*@
#…4$::N‚†"/-F')QEF;S";
A8*@#!;—9Qˆ
•##;*+H™
PMLQˆF;$*@#F";
Qˆ*"#…ŽQ:†
PC QE*@#F;$F";-
QˆH&DQ$W…\:†
##;*+HQ& 8IQ&
$2*]#;-*+HK')8*’D
QˆI#;-QE-…N*:G4†
C-#;-*+H4"D•##;
I$0#;HDKD#;-4ˆD
$y ™^DQ-$D494&#>I1
SQE')6'-š’#;*+H'
}
FI$—')LQˆ #;H]2•#;-D
 9$#;H$R+@)4T$I
"C$+/44-#;*+Hž')

D1$+/494F•##;& 
_953E1Ev6>LwQQzU5=>5?9:di>dBZv>m?A{c9:
*'0I*"D#;QE-*W™
Tập
khoá
công
khai
Tập
khoá
công
khai

P]2&F…:†9DS4-…4*‘4$:†FQE
$;-$";
P]2:*D:* -
')8-…4*:†=-K9')1*@#$8
-…4$::†
PC D:\L:?:\—&;-
7L*’-:?
P=#');;-(:\:?&";
-*’-d-4x* –-
D:?-"%";')
]#;-*+H')LQˆQˆ™:+
91<…Q:†$x-##;H
…::H:†
1.2.2. Thuật toán mật mã RSA
‚M\##;*+H')HQ&*X‚‚$:\Q
M$Y:\Q:9$]:…][†Q-')S
‚$:PMP\Q:‚M\#6%w€~~$ 
;')Qˆ/š$&ž'##;*+

H<‚M\Q& < Q&
HL<*
‚M\D##;-@'0wŠy|SyŠ|‰*
‚M\')HL<'A@Qˆ8@'0#
wŠy|*-„(Š ywŠy|Pw'I'I$0
#44-zŠ€13<’1&0FHL<
')*’LQˆ+3Q1-Ÿ1#44x
* 
#‚M\')"'™
~
w^F9DS4-‚M\'0 804$!
h8C@4$!…C•4!†
y8D::$…4Pw†…!Pw†E
Q:Q•wQ…4Pw†…!Pw†
z A0z47K9C:$Q-™
− =-…4*:†x)4…C:†
− =-*@#…4$:†x)4…CQ†
|];-D]')&:™
•]
:
QC …$0]TIC†
} O";')&:™
]•
Q
QC
Ví dụ™S44•ww$!•z')8F9S4‚M\
:\
=-C•4!•z ww•zz
…4Pw†…!Pw†•…wwUw†…zUw†•yŠ
8:•z"/z$yŠS4E

A0:•z-FI"8Q•~$:Q•z ~•wQyŠ„
T+
=-H„')S4-'™
=-™(N, e) = (33, 3)
=-*@#™(N, d) = (33, 7)
h"L:?L]•w}:\Q&-
\?&'™
•]
:
QC•w}
z
Qzz•zz~}Qzz•€Qzz
=-#L\C = 9A#')\
";*’-…Q•~†'™
]•
Q
*C•€
~
Qzz•|~‰y€•€Qzz•w}Qzz

C'$#";]•w}3$0*7
-9##;‚M\')&Wz!6™9
;$";')-.'™
& F9')DS4-4"')8
4$!0…CT+4"wŠy|*†Q$#$+/&‚M\*W
4•4ž(+0A+/"4@@$%D
&#‚M\D1$+/!874""! 
@+&"#‚M\+4#
')
^D‚M\Q&y$+/8™*4@

(0$*‚M\C y*-
…')#!"†F&')$4;*D
$0‚M\N;D474"')%S*’4'I44Fx
*"›?‚M\*@%*#eQn…$0n)4†™
w9™
• 84! …4$!4≠!†
• @C•4!
• @φ…C†•…4Uw†…!Uw†
• 8:'00+:$φ…C†w
• 8Q:QQφ…C†•w
• S4‚M\')9Nf•…C:†N‚•…CQ†
y];™
• •]
:
QC …]TIC†
zh";™
• ]•
Q
QC

mm
e
=cQ-…en†@-$c*";>
4'I44F$8+"*4@n(
=&')/¡+—ž*@#d(-$
-F";:3!#C ¡+')y
p$q™n•pq-FQBQ')„…pPw†…qPw†$!
-H„d(e'I83;* '-D4'I44
')@F"*6…polynomial-
time†'6ž'')/')9…&W9

#†
‚M\-D&#IF$0#;-
H& ?*LQˆD#;-H-F;-$%
*"7L$–LQˆ‚M\F;--F";…'6-.
I/$0$%*"†N'Iž91$+/0
]D$@Qˆ74"9-H#&RC ¡+
…'6<G$:†—*T!‚M\$#4$$-H
M74"-@'0TI}wy*@C%yŠŠ•#‚M\
')!"$0@'04"(wŠy| 'I/Q
4"(yŠy|*@
^FD;-8:$0„0'6z~
•}}z~*FQBXQ9„4–-y1w&
ž(—"
p$q7')8!7F4K'6)44@n
*’4'I444@•:C pPwSqPw-(
Tnž-FQBQ*„4@:4'I444PwNQ$$ p$
qž7')LF"%-F8'™'0
4
w
4•y4
w
¢wž'I&8!
w

!•y!
w
¢wž

h„Q74"0C%w€€Š]:£¤::;’ 
'

qpq y<<
$
z‘
|‘w
nd <
-4'I44!"F@Q:$:
_953E4<,tmsdB5eUQ@9:y5UA
1.2.3. Thuật toán trao đổi khoá Diffie-Hellman
dŽŽ:P>:D#QEFx-…::H:†
LQˆF#;-Q1d:ŽŽ:P>:9-@8
x-*@###;H]D$+/!8
! @##;H$+/+*@
#1&F
#xdŽŽ:P>:Q&4•469…Q::
†'0D$H•

FI"&4•4™•


…H† '04$…

Q4†!H„')&
:$0X$')869A@6
9-+494'$R-F&')
#dŽŽ:P>:I"'™
ww
Ph84D$DI…::†"/$0
8H∈¥wy`4Pw¦')H•

Q4

Ph„4$')4x* 1&FxM-
:\9D*@#{

§4@„¨

•…
{
Q4†$L?'I
&:?ž9D*@#{
*
§4@„¨
*
•…
*
Q4†$L9
\
d&#')(\:?H„')*@#QE
4$*’@„…
{
Q4†
{*
•…
{{*
Q4†?’'I
&:\žH„')*@#*’@„…
{*
Q4†
{
•
…

{{*
Q4†
h"L!x„…
{
Q4†$…
{*
Q4†D'6
z-*.')ž+-H„')$*$D4
944•4-69+
Chọn số bí mật X
a
< p
Tính Y
a
= (g
Xa
mod p) và
gởi cho B
Tính K = (Y
b
)
Xa
mod p
Chọn số bí mật X
b
< p
Tính Y
b
= (g
Xb

mod p) và
gởi cho A
Tính K = (Y
a
)
Xb
mod p
User A User B
_953EF<56i>>h|9>LUhmuAy5h|A}}A~~kkdU9
wy
Ví dụ:
h"L4•z}z$•z-FF’$0D*+,Š
§§z}zH„')D";z

•
h"L:\8„*@#{

•€~$:?8„*@#{
*
•
yzz=-™
f:\@')¨

•…z
€~
Qz}z†•|Š$L?
f:?@')¨
*
•…z
yzz

Qz}z†•y|‰$L\
f:\@')*@#=•…¨
*

{
Qz}z•y|‰
€~
Qz}z•w•Š
f:?@')*@#=•…¨


{*
Qz}z•|Š
€~
Qz}z•w•Š
@dŽŽ:P>:Q&D4944•46
9C-$H„„{

{
*
(„4¨

$¨
*
F
&')0#%S
')+:4'IH:1]P[P:P]QQ:…][]†'™
P^F&+][] 1:\$:?:ž
8{
w

${
y
"/{
w
§4${
y
§4-ž
@„'I¨
w
•…
{w
Q4†$¨
y
•…
{y
Q4†
P=:\L¨

:?:—S+W69
Q\FL?„¨
w
f:?H„=
w
Q&¨
w
$L9
\„¨
*
f:9S+„$9Q?FL\„¨
y


Pf:\H„=
y
Q&¨
y
?.7(x
1\$?/')S*.$x*’LQˆS4=
w
$=
y

wz
C'$##dŽŽ:P>:"! ')$+/Q
-I H&1&Fx^F ').4ˆ*’
LQˆ )4$0#H&'—*X47  4
C#‚M\$dŽŽ:P>:D#ž')
4FQ&<LQˆDS4$*@#G4P$:
44…G†D"#0')L$©/'
F$0‚M\'D494@"@$R')"
*"G@)4$0Qˆ9 *„-%&HL<9
˜9' *„3…:*Q:QQ:$:†
1.2.4. Đánh giá kỹ thuật mật mã bất đối xứng
=•##;*+HK-F4')17$/
*"#'•##;HSQED&;
*+H'6+4IQ*"+#Q&8
Q&HL<*>I1;*+H–4E)4$0$
&*’47/]#;*+H"*"')y7I*"
@*@#$@$©=•##;*+H-y'F
$0;H™
w>&F7&ˆx-'0*.

7$
y?9Qˆ"*"@K$©Q1#;*+H
…')LQˆˆ@H&†K"*"')@F4#
…P:4Q†
3E4E•|Q>5fQ>5@9:>A9
{&…:::†DI ')Qˆ
HL<$0ˆ@™
w|
P^"*"DQx1&F@H"*"
@$©$/DQ
P^"*"')9…W†3')
)4;')*…"*"@$©$/W†
1.3.1. Phương pháp xác thực thông tin bằng mật mã khóa công khai
C.#;–-1'))404ˆ')
(#-FLQˆ.FH&
'™
&FL&;-QE-*@#…N‚†$QE
-=#9-F')";*X*+,')
* -&FL !";
')#-F..’#')3$@
')L)4;L*X$–-')-0--
N‚N'I44H&*’#;Q&$D#-*@#
1.3.2. Phương pháp xác thực thông tin bằng mã xác thực
Nơi gửi thông tin Nơi nhận thông tin
_953E€<•|Q>5fQ>5@9:>A9Z•9:di>dBy5eUQ@9:y5UA
C
]™ G™#-; - d™#-";
™# N‚™=-*@#*L
Nf™=-*L
w}

];H&]\…]::\:Q:†')(D
-DQ*+,$D-*@#=@'0]\„
4ˆD$@'0Q1$'6TIQ1
^')L—LV„]\E$0N@#
#')E$0„]\LV—&9
„
]\0(E$0-*@#;+1*
C „]\$(9$0„]\#')(4@L4@#-
F..’*„x!/
AQE]\FH&Q&$IX™
P‡$0D]$D-*@#=–9Q
+D;H&]\
P–-4@L$4@#)40')* -=
Nơi gửi thông tin Nơi nhận thông tin
Mã xác thực (MAC)
]™ ™>9;H&
=™=-*@#QE1*X$*#
‚‚<C;H&$
_953ED<•|Q>5fQ>5@9:>A9Tƒ9:
w•

×