You are on page 1of 2

m=amplific

subkey=>RS =>( 01010010 01010011 )


S=4

a=( 01100001 01101101)


b=( 01110000 01101100)
c=( 01101001 01100110)
d=( 01101001 01100011)

1. a+subkey= (01100001 01101101 + 01010010 01010011)mod2^32=(24941+21075)mod2^32= 46016


=>10110011 11000000
2. c^d= 01101001 01100110 &
01101001 01100011
01101001 01100010

3. (not d)^b= 10010110 10011100 &


01110000 01101100
00010000 00001100

4. (c^d)+(not d^b)= (01101001 01100010+00010000 00001100)mod2^32=(26978+4108)mod2^32=31086


=>01111001 01101110

5.(pt1+pt4)= (10110011 11000000+0111100101101110)mod2^32=(46016+31086)mod2^32=77102 =>

6.(<<<4): 0000 00000001 00101101 00101110 0000

7. b=> ( 01110000 01101100)


c=> ( 01101001 01100110)
d=> ( 01101001 01100011)
a=> (0000 00000001 00101101 00101110 0000)
8. b,c,d,a=> 01110000 01101100 01101001 01100110 01101001 01100011 0000 00000001 00101101 00101110 0000)

(plific) 12D2E0

Decriptare
1. (>>>4)
0000 00000001 00101101 00101110 0000 (>>>4) 1 00101101 00101110

2. c^d 01101001 01100110&


01101001 01100011
01101001 01100010

3. (not d)^b= 10010110 10011100 &


01110000 01101100
00010000 00001100
4.(c^d)+(not d^b)= (01101001 01100010+00010000 00001100)mod2^32=(26978+4108)mod2^32= 31086 =>
01111001 01101110
5. (a-(b^(not d)+ (c^d) )) => (0000 00000001 00101101 00101110 0000-01111001 01101110)mod2^32= (1233632-
31086)mod2^32=1202546 => 100100101100101110010

6. a-RS= (100100101100101110010 - 01010010 01010011) mod 2^32 = (1202546-82)mod2^32= 1202464 =>


100100101100100100000

You might also like