Asila Elchiboyeva A5/1 ma’lumotni shifrlash algoritmi


Download 25.05 Kb.
bet1/3
Sana03.12.2020
Hajmi25.05 Kb.
#157280
  1   2   3
Bog'liq
2 amaliy 6 topshiriq


691-19

Asila Elchiboyeva

A5/1 ma’lumotni shifrlash algoritmi

Ochiq matn sifatida M=”AS”; kalit sifatida K=”ELCHIBOYEVA” larni olindi.

0

A

00000

1

B

00001

2

C

00010

3

D

00011

4

E

00100

5

F

00101

6

G

00110

7

H

00111

8

I

01000

9

J

01001

10

K

01010

11

L

01011

12

M

01100

13

N

01101

14

O

01110

15

P

01111

16

Q

10000

17

R

10001

18

S

10010

19

T

10011

20

U

10100

21

V

10101

22

W

10110

23

X

10111

24

Y

11000

25

Z

11001

26

#

11010

27

!

11011

28

*

11100

29

/

11101

30

\

11110

31

?

11111



E

L

C

H

I

B

O

Y

E

V

A

00100

01011

00010

00111

01000

00001

01110

11000

00100

10101

00000



A

S

00000

10010

(Xorlash belgisi “^” qilib kiritildi)

Bu usulda kalit 64 bitni tashkil qilib, 3ta registorga qiymat qilib belgilanadi:

X=19 bit(x0,x1,x2,…,x18);

Y=22 bit(y0,y1,y2,..,y21);

Z= 23 bit(z0,z1,z2,…z22);

Shunga ko’ra:

x=0010001011000100011;

y=1010000000101110110000;

z=01001010100000000001001;

ekanligi kelib chiqadi.





0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

x

0

0

1

0

0

0

1

0

1

1

0

0

0

1

0

0

0

1

1













y

1

0

1

0

0

0

0

0

0

1

0

1

1

1

0

1

1

0

0

0

0

0




z

0

1

0

0

1

0

1

0

1

0

0

0

0

0

0

0

0

0

0

0

0

0

1

Har bir qadamda m=maj(X8,Y10, Z10) hisoblanadi,ya’ni:
m=maj(1,0,0)=0;
Demak X Z registorlar siljiydi:

X1=1^0^1^1=1;

Z1=0^0^0^1=1;

X0 va Z0 qiymatlari Y va Z registorlarning o’ng tomoniga qo’shiladi, hamda bu registorlarning oxirgi qiymatlari o’chiriladi:





0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

x

1

0

0

1

0

0

0

1

0

1

1

0

0

0

1

0

0

0

1

0










y

1

0

1

0

0

0

0

0

0

1

0

1

1

1

0

1

1

0

0

0

0

0




z

1

0

1

0

0

1

0

1

0

1

0

0

0

0

0

0

0

0

0

0

0

0

0

Bunda kalitimiz 1^1^1=1; orqali topiladi , ya’ni kalit 1-K1=1

Har bir qadamda m=maj(X8,Y10, Z10) hisoblanadi,ya’ni:
m=maj(0,0,0)=0; Demak X Z Y registorlar siljiydi:

X2=0^0^0^1=1;

Y2=0^0=0

Z2=1^0^0^0=1;





0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

x

1

1

0

0

1

0

0

0

1

0

1

1

0

0

0

1

0

0

0

1










y

0

1

0

1

0

0

0

0

0

0

1

0

1

1

1

0

1

1

0

0

0

0




z

1

1

0

1

0

0

1

0

1

0

1

0

0

0

0

0

0

0

0

0

0

0

0

Bunda kalitimiz 1^0^1=0; orqali topiladi , ya’ni kalit 2-K2=0

Har bir qadamda m=maj(X8,Y10, Z10) hisoblanadi,ya’ni:
m=maj(1,1,1)=1; Demak X Z registorlar siljiydi:

X3=0^0^0^0=0;

Z3=0^0^0^0=0;



0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

x

0

1

1

0

0

1

0

0

0

1

0

1

1

0

0

0

1

0

0

0










y

0

1

0

1

0

0

0

0

0

0

1

0

1

1

1

0

1

1

0

0

0

0




z

0

1

1

0

1

0

0

1

0

1

0

1

0

0

0

0

0

0

0

0

0

0

0

Bunda kalitimiz 0^0^0=0; orqali topiladi , ya’ni kalit 3-K3=0

Download 25.05 Kb.

Do'stlaringiz bilan baham:
  1   2   3




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