Asila Elchiboyeva A5/1 ma’lumotni shifrlash algoritmi


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


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

X4=0^1^0^0=1

Y4=0^0=0

Z4=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

0

1

1

0

0

1

0

0

0

1

0

1

1

0

0

0

1

0

0










y

0

0

1

0

1

0

0

0

0

0

0

1

0

1

1

1

0

1

1

0

0

0




z

1

0

1

1

0

1

0

0

1

0

1

0

1

0

0

0

0

0

0

0

0

0

0

Bunda kalitimiz 1^0^1=0; orqali topiladi , ya’ni kalit 4-K4=0

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

X5=1^0^1^0=0

Y5=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

0

1

1

0

0

1

0

0

0

1

0

1

1

0

0

0

1

0










y

0

0

1

0

1

0

0

0

0

0

0

1

0

1

1

1

0

1

1

0

0

0




z

0

1

0

1

1

0

1

0

0

1

0

1

0

1

0

0

0

0

0

0

0

0

0

Bunda kalitimiz 0^0^0=0; orqali topiladi , ya’ni kalit 5-K5=0

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

X6=1^0^0^1=0

Y6=0^0=0;

Z6=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

0

1

0

1

1

0

0

1

0

0

0

1

0

1

1

0

0

0

1










y

0

0

0

1

0

1

0

0

0

0

0

0

1

0

1

1

1

0

1

1

0

0




z

0

0

1

0

1

1

0

1

0

0

1

0

1

0

1

0

0

0

0

0

0

0

0

Bunda kalitimiz 0^0^0=0; orqali topiladi , ya’ni kalit 6-K6=0

Har bir qadamda m=maj(X8,Y10, Z10) hisoblanadi,ya’ni:

m=maj(1,0,1)=0; Demak X Y Z registorlar siljiydi:

X7=0^0^0^0=0

Y7=0^0=0;

Z7=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

0

0

0

1

0

1

1

0

0

1

0

0

0

1

0

1

1

0

0

0










y

0

0

0

0

1

0

1

0

0

0

0

0

0

1

0

1

1

1

0

1

1

0




z

1

0

0

1

0

1

1

0

1

0

0

1

0

1

0

1

0

0

0

0

0

0

0

Bunda kalitimiz 0^0^1=1; orqali topiladi , ya’ni kalit 7-K7=1

Har bir qadamda m=maj(X8,Y10, Z10) hisoblanadi,ya’ni:

m=maj(0,0,0)=0; Demak X Y Z registorlar siljiydi:

X8=1^1^0^0=0;

Y8=1^0=1;

Z8=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

0

0

0

1

0

1

1

0

0

1

0

0

0

1

0

1

1

0

0










y

1

0

0

0

0

1

0

1

0

0

0

0

0

0

1

0

1

1

1

0

1

1




z

0

1

0

0

1

0

1

1

0

1

0

0

1

0

1

0

1

0

0

0

0

0

0

Bunda kalitimiz 0^1^0=1; orqali topiladi , ya’ni kalit 8-K8=1

Har bir qadamda m=maj(X8,Y10, Z10) hisoblanadi,ya’ni:

m=maj(0,0,0)=0; Demak X Y Z registorlar siljiydi:

X9=0^1^1^0=1

Y9=1^1=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