Uralov Elchin Guruh: 710-20 Variant: 11


Asosiy qism. Simmetrik shifrlash usullarini axborotni himoyalashda ishlatish


Download 1.7 Mb.
bet6/7
Sana27.01.2023
Hajmi1.7 Mb.
#1131735
1   2   3   4   5   6   7
Bog'liq
Kiberxavfsizlik asoslari (1)

2. Asosiy qism. Simmetrik shifrlash usullarini axborotni himoyalashda ishlatish.
2.1. A5/1 shifrlash algoritmi haqida (oqimli)
GSM tarmogβ€˜ida ovozli soβ€˜zlashuvlarni shifrlash uchun foydalaniladi.
A5/1 oqimli shifrlash algoritmida 64 bitli 𝐾 kalitdan foydalaniladi.
A5/1 shifrlash algoritmi uchta chiziqli siljitish registorlaridan iborat boβ€˜lib, kiritilgan kalit 𝐾 ularga boβ€˜lib yoziladi:
𝑋 registor oβ€˜zida 19 bit (π‘₯0,π‘₯1,…,π‘₯18)
π‘Œ registor esa 22 bit (𝑦0,𝑦1,…,𝑦21)
𝑍 registor esa 23 bit (𝑧0,𝑧1,…,𝑧22)
Tasodifiy ketma-ketliklarni generatsiyalash
Berilgan uchta bit π‘₯8,10,𝑧10 asosida π‘š=π‘šπ‘Žπ‘—(π‘₯8,𝑦10,𝑧10 ) funksiya qiymati hisoblanadi.
Masalan, (1,0,0)=0,π‘šπ‘Žπ‘—(1,1,0)=1
Agar π‘₯8=π‘š ga teng boβ€˜lsa, 𝑋 siljitiladi:
𝑑=π‘₯13⨁π‘₯16⨁π‘₯17⨁π‘₯18
𝑖=18,17,16,…,1 uchun π‘₯i=π‘₯(i-1)
π‘₯0=𝑑
Agar 𝑦10=π‘š ga teng boβ€˜lsa, π‘Œ siljitiladi:
𝑑=𝑦20⨁𝑦21
𝑖=21,20,19,…,1 uchun 𝑦i=𝑦(i-1)
𝑦0=𝑑
Tasodifiy ketma-ketliklarni generatsiyalash
Agar 𝑧10=π‘š ga teng boβ€˜lsa, 𝑍 siljitiladi:
𝑑=𝑧7⨁𝑧20⨁𝑧21⨁𝑧22
𝑖=22,21,20,…,1 uchun 𝑧i=𝑧(i-1)
𝑧0=𝑑
Shundan soβ€˜ng tasodifiy ketma-ketlikning bir biti quyidagicha hisoblanadi:
𝑠=π‘₯18⨁𝑦21⨁𝑧22
Yuqoridagi ketma-ketlik ochiq matnni uzunligiga teng bitlarni generatsiya qilguncha takrorlanadi.

Bunga misol tariqasida Ismimning bosh harfini shifrlaydigan bo’lsam:
T = E
K = XORAZMIY
T = 0100
K = 0101100001001111010100100100000101011010010011010100100101011001
X: 0101100001001111010
Y: 1001001000001010110100
Z: 10011010100100101011001
1:
maj(0,0,0) = 0
X, Y va Z registorlar suriladi
t = = 1 0 1 0 = 0

t = = 0 0 = 0
t = = 0 0 0 1 = 1
X: 0010110000100111101
Y: 0100100100000101011010
Z: 11001101010010010101100
C = 1 0 0 0 = 1
2:
maj(0,0,0) = 0
X, Y va Z registorlar suriladi
t = = 1 1 0 1 = 1

t = = 1 0 = 1
t = = 1 1 0 0 = 0
X: 1001011000010011110
Y: 1010010010000010101101
Z: 01100110101001001010110
C = 0 1 0 1 = 0
3:
maj(0,0,1) = 0
X, Y registorlar suriladi
t = = 0 1 1 0 = 0

t = = 0 1 = 1
X: 0001011000010011110
Y: 1010010010000010101101
Z: 11001101010010010101100
C = 0 1 0 0 = 1
4:
maj(0,0,0) = 0
X, Y va Z registorlar suriladi
t = = 0 1 1 0 = 0

t = = 0 1 = 1
t = = 1 1 0 0 = 0
X: 0001011000010011110
Y: 1010010010000010101101
Z: 01100110101001001010110
C = 0 1 0 0 = 1
C = 1011


Download 1.7 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling