O‘z familyangiz ismingiz va otangizni ismidan foydalanib, 8 baytini oling va uni ikkilik
Download 190.78 Kb. Pdf ko'rish
|
2- amaliy ish 6-7 topshiriqlar (1)
Topshiriq: O‘z familyangiz ismingiz va otangizni ismidan foydalanib, 8 baytini oling va uni ikkilik ko‘rinishda ifodalab, A5/1 shifrlash algoritmi uchun kirish qiymat qilib bering. Dastlabki 2 bitli tasodifiy kalitni hisoblang. N U
I D D I 0 1 1 0 1 1 0 1 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 1 1 0 0 0 1 1 0 1 0 0 0
N
V M U H A 0 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 1 1 1 0 0 0 0 0 M M A D A L I 0 1 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 1 1 0 1 0 0 0
0 1 1 0 1 1 0 1 0 0 1 0 0 0 1 0 1 0 0
0 0 0 0 1 1 0 0 0 1 1 0 1 0 0 0 0 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 1 1
8 , y 10 , z 10 )=maj(0,1,1)=1 x 8 ,≠m, X registor siljimaydi; y 10 =z 10 =m, Y va Z registorlar siljiydi; Y registor qiymatlari
20 y 21 = 1 0=1 y i = y i − 1 for i = 21,20,…,1 and y 0 = t Z registor qiymatlari Y X
t = z 7 z 20 z 21 z 22 =0 0 1 1=0 z i = z i − 1 for i = 22,21,…,1 and z 0 = t kalit: s 1 = 𝑥 18 ⨁𝑦 21 ⨁𝑧 22 =0 1 1 = 0 0 1 1 0 1 1 0 1 0 0 1 0 0 0 1 0 1 0 0
1 0 0 0 0 1 1 0 0 0 1 1 0 1 0 0 0 0 1 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 1
8 , y 10 , z 10 )=maj(0,1,0)=0 y 10 ≠ 0 registor siljimaydi x 8 =z 10 =m, registorlar siljiydi; X registor qiymatlari
13 x 16 x 17 z 18 =0 1 0 0=1 y i = y i − 1 for i = 21,20,…,1 and y 0 = t Z registor qiymatlari t = z 7 z 20 z 21 z 22 =1 0 0 1=0 z i = z i − 1 for i = 22,21,…,1 and z 0 = t kalit: s 2 = 𝑥 18 ⨁𝑦 21 ⨁𝑧 22 =0 0 0 = 0 Javob: Dastlabki 2 bitli tasodifiy kalitlar= 0,0
Y
Z
Download 190.78 Kb. Do'stlaringiz bilan baham: |
ma'muriyatiga murojaat qiling