how Irdeto algo works?

מדור זה מיועד לאיחסון כתבות ומאמרים שהועלו על ידי אנשי הפורום על מנת שיהיה קל לאתר ולקרוא.
המדור אינו מיועד לשאלות או לבקשות לתגובה, לשם כך יש להשתמש במדור בנושא המבוקש.
שלח תגובה
סמל אישי של משתמש
yoramile1
תותח על
תותח על
הודעות: 6122
הצטרף: 02 ינואר 2004, 20:47
Has thanked: 6 פעמים
Been thanked: 1 פעם

שליחה על ידי yoramile1 »

how Irdeto algo works?
how the card DECRYPT the ENCRYPTED 8 byte key in the EMM message?
in the following post I will try to answer these qestions
---------------------------------------------------------
Example of an ECM packet:
CAM -> : 01 05 00 00 00 23 FF C3 00 0A 00 1D 00 02 06 E5
: 78 12 0A 12 F1 22 71 76 E3 11 27 18 E0 D8 61 40
: 52 26 CF 6F AF 69 E1 BB 0D [E5]
<- CARD: 01 05 9D 00 38 01 00 0E FF C3 00 12 FF FF D6 0B
: DC 0B 3D 7B 5D 91 [3F]
----------------------------------------------------------
This breaks down to:-
CAM -> 01 05 00 00 kt 23 :The ECM, length 23 hex bytes.
kt indicates whether one (kt=00) or
two (kt=02) keys are to be used.
FF C3 :channel ID
00 :Provider
0A lain key number
00 :Always 00?filter
1D :length of the following string (29)
00 02 :SetDate nano also (00 40)
06 E5 :date
78 12 :The 78 nano and length
0A lain key number
12 :Key packet. Always 12 or 13
This determines whether the
first(encrypted key)or second
eight bytes (encrypted key)are
to be used.
F1 22 71 76 E3 11 27 18 :Eight bytes of encrypted key one
E0 D8 61 40 52 26 CF 6F :Eight bytes of encrypted key two
AF 69 E1 BB 0D :signature
[E5] :Checksum
<- CARD: 01 05 9D 00 38 :header
tt :if kp = 13 then tt = 00
00 :
0E :length of the following string (14)
FF C3 :channel ID
00 :Provider
kp :if kp = 12 then tt = 01
FF FF :date
D6 0B DC 0B 3D 7B 5D 91 :decrypted key
[3F] :Checksum
(thanks to 007.4 for Activation v11)
-------------------------------------------------------------------
as we see the card must answer correct to see the picture so
the encrypted key (F1 22 71 76 E3 11 27 18) should be answered
from the card (D6 0B DC 0B 3D 7B 5D 91)in our example.but how?
we need the following data:
1-F1 22 71 76 E3 11 27 18 :Eight bytes of encrypted key
2-CB 54 C1 0A DE 2E 32 1A :0A Plain Key
3-62 D3 16 87 FC CC BA 14 :cam Key "i will talk about it later"
4-06 E5 :date stamp
date PREPARATION
------------
1-first byte of PlainKey (XORed) first byte of date (CB xor 06=CD)
2-second byte of PlainKey (XORed) second byte of date(54 xor E5=B1)
so, new date=CD B1
we add this date to plain key to form ten bytes key we will
call it (BK) "big key" CB 54 C1 0A DE 2E 32 1A CD B1
2-Eight bytes encrypted key we will
call it (EK)F1 22 71 76 E3 11 27 18

ROUND 1
********
We shift the ten bytes key (BK)one bit to the right
(Bk)=CB 54 C1 0A DE 2E 32 1A CD B1 ==>
new(BK)=E5 AA 60 85 6F 17 19 0D 66 D8
-----------------------------------------
We will use these keys for this ROUND:-
BK=E5 AA 60 85 6F 17 19 0D 66 D8
EK=F1 22 71 76 E3 11 27 18
-----------------------------------------
1-(BK1)E5 xor (EK1)F1 = 14 ==>0A xor 22 (EK2)=28
new (EK)=F1 28 71 76 E3 11 27 18
(we XORed first byte of ten bytes key(BK1) with first byte of
encrypted key (EK1) to get the locaion of hash table
"see post part3" if BK1 odd we use table 1, the location 14
in table 1=0A then we XOR this value with second byte of
encrypted key (EK2) and the result go into EK2).

2-(BK2)AA xor (EK2)28 = 82 ==>AC xor 71 (EK3)=DD
new (EK)=F1 28 DD 76 E3 11 27 18
((BK2)AA is even so we will use table 2 location 82 =AC)

3-(BK3)60 xor (EK3)DD = BD ==>8C xor 76 (EK4)=FA
new (EK)=F1 28 DD FA E3 11 27 18
4-(BK4)85 xor (EK4)FA = 7F ==>9B xor E3 (EK5)=78
new (EK)=F1 28 DD FA 78 11 27 18
5-(BK5)6F xor (EK5)78 = 17 ==>21 xor 11 (EK6)=30
new (EK)=F1 28 DD FA 78 30 27 18
6-(BK6)17 xor (EK6)30 = 27 ==>B3 xor 27 (EK7)=94
new (EK)=F1 28 DD FA 78 30 94 18
7-(BK7)19 xor (EK7)94 = 8D ==>9E xor 18 (EK8)=86
new (EK)=F1 28 DD FA 78 30 94 86
8-(BK8)0D xor (EK8)86 = 8B ==>55 xor F1 (EK1)=A4
new (EK)=A4 28 DD FA 78 30 94 86
9-(BK9)66 xor (EK1)A4 = C2 ==>23 xor FA (EK4)=D9
new (EK)=A4 28 DD D9 78 30 94 86
10-(BK10)D8 xor (EK4)D9 = 01 ==>D5 xor 94 (EK7)=41
new (EK)=A4 28 DD D9 78 30 41 86

ROUND 2
********
Shift(BK)one bit to the right
old(BK)=E5 AA 60 85 6F 17 19 0D 66 D8
new(BK)=72 D5 30 42 B7 8B 8C 86 B3 6C
--------------------------------------------
We will use these keys for this ROUND:-
new(BK)=72 D5 30 42 B7 8B 8C 86 B3 6C
from last Round(EK)=A4 28 DD D9 78 30 41 86
--------------------------------------------
1-(BK1)72 xor (EK7)41 = 33 ==>E6 xor 28 (EK2)=CE
new (EK)=A4 CE DD D9 78 30 41 86
2-(BK2)D5 xor (EK2)CE = 1B ==>58 xor 78 (EK5)=20
new (EK)=A4 CE DD D9 20 30 41 86
3-(BK3)30 xor (EK5)20 = 10 ==>82 xor 86 (EK8)=04
new (EK)=A4 CE DD D9 20 30 41 04
4-(BK4)42 xor (EK8)04 = 46 ==>54 xor DD (EK3)=89
new (EK)=A4 CE 89 D9 20 30 41 04
5-(BK5)B7 xor (EK3)89 = 3E ==>39 xor 30 (EK6)=09
new (EK)=A4 CE 89 D9 20 09 41 04
6-(BK6)8B xor (EK6)09 = 82 ==>96 xor A4 (EK1)=32
new (EK)=32 CE 89 D9 20 09 41 04
7-(BK7)8C xor (EK1)32 = BE ==>06 xor CE (EK2)=C8
new (EK)=32 C8 89 D9 20 09 41 04
8-(BK8)86 xor (EK2)C8 = 4E ==>86 xor 89 (EK3)=0F
new (EK)=32 C8 0F D9 20 09 41 04
9-(BK9)B3 xor (EK3)0F = BC ==>E7 xor D9 (EK4)=3E
new (EK)=32 C8 0F 3E 20 09 41 04
10-(BK10)6C xor (EK4)3E = 52 ==>A2 xor 20 (EK5)=82
new (EK)=32 C8 0F 3E 82 09 41 04
ROUND 3
********
Shift(BK)one bit to the righ
old(BK)=72 D5 30 42 B7 8B 8C 86 B3 6C
new(BK)=39 6A 98 21 5B C5 C6 43 59 B6
-------------------------------------------
We will use these keys for this ROUND:-
new(BK)=39 6A 98 21 5B C5 C6 43 59 B6
from last Round(EK)=32 C8 0F 3E 82 09 41 04
--------------------------------------------
1-(BK1)39 xor (EK5)82 = BB ==>65 xor 09 (EK6)=6C
new (EK)=32 C8 0F 3E 82 6C 41 04
2-(BK2)6A xor (EK6)6C = 06 ==>7F xor 41 (EK7)=3E
new (EK)=32 C8 0F 3E 82 6C 3E 04
3-(BK3)98 xor (EK7)3E = A6 ==>FE xor 04 (EK8)=FA
new (EK)=32 C8 0F 3E 82 6C 3E FA
4-(BK4)21 xor (EK8)FA = DB ==>CC xor 32 (EK1)=FE
new (EK)=FE C8 0F 3E 82 6C 3E FA
5-(BK5)5B xor (EK1)FE = A5 ==>63 xor 3E (EK4)=5D
new (EK)=FE C8 0F 5D 82 6C 3E FA
6-(BK6)C5 xor (EK4)5D = 98 ==>1D xor 3E (EK7)=23
new (EK)=FE C8 0F 5D 82 6C 23 FA
7-(BK7)C6 xor (EK7)23 = E5 ==>0C xor C8 (EK2)=C4
new (EK)=FE C4 0F 5D 82 6C 23 FA
8-(BK8)43 xor (EK2)C4 = 87 ==>D1 xor 82 (EK5)=53
new (EK)=FE C4 0F 5D 53 6C 23 FA
9-(BK9)59 xor (EK5)53 = 0A ==>8C xor FA (EK8)=76
new (EK)=FE C4 0F 5D 53 6C 23 76
10-(BK10)B6 xor (EK8)76 = C0 ==>44 xor 0F (EK3)=4B
new (EK)=FE C4 4B 5D 53 6C 23 76
ROUND 4
********
Shift(BK)one bit to the right
old(BK)=39 6A 98 21 5B C5 C6 43 59 B6
new(BK)=1C B5 4C 10 AD E2 E3 21 AC DB
-------------------------------------------
We will use these keys for this ROUND:-
new(BK)=1C B5 4C 10 AD E2 E3 21 AC DB
from last Round(EK)=FE C4 4B 5D 53 6C 23 76
--------------------------------------------
1-(BK1)1C xor (EK3)4B = 57 ==>CA xor 6C (EK6)=A6
new (EK)=FE C4 4B 5D 53 A6 23 76
2-(BK2)B5 xor (EK6)A6 = 13 ==>75 xor FE (EK1)=8B
new (EK)=8B C4 4B 5D 53 A6 23 76
3-(BK3)4C xor (EK1)8B = C7 ==>36 xor C4 (EK2)=F2
new (EK)=8B F2 4B 5D 53 A6 23 76
4-(BK4)10 xor (EK2)F2 = E2 ==>CC xor 4B (EK3)=87
new (EK)=8B F2 87 5D 53 A6 23 76
5-(BK5)AD xor (EK3)87 = 2A ==>5D xor 5D (EK4)=00
new (EK)=8B F2 87 00 53 A6 23 76
6-(BK6)E2 xor (EK4)00 = E2 ==>CC xor 53 (EK5)=9F
new (EK)=8B F2 87 00 9F A6 23 76
7-(BK7)E3 xor (EK5)9F = 7C ==>01 xor A6 (EK6)=A7
new (EK)=8B F2 87 00 9F A7 23 76
8-(BK8)21 xor (EK6)A7 = 86 ==>AD xor 23 (EK7)=8E
new (EK)=8B F2 87 00 9F A7 8E 76
9-(BK9)AC xor (EK7)8E = 22 ==>1D xor 76 (EK8)=6B
new (EK)=8B F2 87 00 9F A7 8E 6B
10-(BK10)DB xor (EK8)6B = B0 ==>3F xor 8B (EK1)=B4
new (EK)=B4 F2 87 00 9F A7 8E 6B
ROUND 5
********
Shift(BK)one bit to the right
old(BK)=1C B5 4C 10 AD E2 E3 21 AC DB
new(BK)=8E 5A A6 08 56 F1 71 90 D6 6D
--------------------------------------------
We will use these keys for this ROUND:-
new(BK)=8E 5A A6 08 56 F1 71 90 D6 6D
from last Round(EK)=B4 F2 87 00 9F A7 8E 6B
--------------------------------------------
1-(BK1)8E xor (EK1)B4 = 3A ==>71 xor 00 (EK4)=71
new (EK)=B4 F2 87 71 9F A7 8E 6B
2-(BK2)5A xor (EK4)71 = 2B ==>58 xor 8E (EK7)=D6
new (EK)=B4 F2 87 71 9F A7 D6 6B
3-(BK3)A6 xor (EK7)D6 = 70 ==>9B xor F2 (EK2)=69
new (EK)=B4 69 87 71 9F A7 D6 6B
4-(BK4)08 xor (EK2)69 = 61 ==>84 xor 9F (EK5)=1B
new (EK)=B4 69 87 71 1B A7 D6 6B
5-(BK5)56 xor (EK5)1B = 4D ==>9C xor 6B (EK8)=F7
new (EK)=B4 69 87 71 1B A7 D6 F7
6-(BK6)F1 xor (EK8)F7 = 06 ==>3E xor 87 (EK3)=B9
new (EK)=B4 69 B9 71 1B A7 D6 F7
7-(BK7)71 xor (EK3)B9 = C8 ==>FA xor A7 (EK6)=5D
new (EK)=B4 69 B9 71 1B 5D D6 F7
8-(BK8)90 xor (EK6)5D = CD ==>14 xor B4 (EK1)=A0
new (EK)=A0 69 B9 71 1B 5D D6 F7
9-(BK9)D6 xor (EK1)A0 = 76 ==>B9 xor 69 (EK2)=D0
new (EK)=A0 D0 B9 71 1B 5D D6 F7
10-(BK10)6D xor (EK2)D0 = BD ==>04 xor B9 (EK3)=BD
new (EK)=A0 D0 BD 71 1B 5D D6 F7

ROUND 6
*********
we will Shift CK one bit to the right
old(CK)=A5 D6 67 E4 38 B6 9B 10
new(CK)=52 EB 33 F2 1C 5B 4D 88
-------------------------------------------
We will use these keys for this ROUND:-
new(CK)=52 EB 33 F2 1C 5B 4D 88
(DK)=B6 C5 EA A9 85 6A B3 EC
constant=2
--------------------------------------------
step (1)
---------------------------------------
1-CK(1)xor DK(7)xor 2 =E3==>BF
2-save DK(1) we will use later.
3-DK(8)EC xor (hash value)BF=53==>DK(1)
new DK= 53 C5 EA A9 85 6A B3 EC
4-move DK(7) to DK(8)
new DK= 53 C5 EA A9 85 6A B3 B3
5-DK(6)6A xor (hash value)BF=D5==>DK(7)
new DK= 53 C5 EA A9 85 6A D5 B3
6-move DK(5) to DK(6)
new DK= 53 C5 EA A9 85 85 D5 B3
7-move DK(4) to DK(5)
new DK= 53 C5 EA A9 A9 85 D5 B3
8-move DK(3) to DK(4)
new DK= 53 C5 EA EA A9 85 D5 B3
9-move DK(2) to DK(3)
new DK= 53 C5 C5 EA A9 85 D5 B3
10-WE get the saved from step2 into DK(2)
new DK= 53 B6 C5 EA A9 85 D5 B3

step (2)
--------------------------------------
1-CK(2)xor DK(7)xor 2 =3C==>30
2-save DK(1) we will use later.
3-DK(8)B3 xor (hash value)30=83==>DK(1)
new DK= 83 B6 C5 EA A9 85 D5 B3
4-move DK(7) to DK(8)
new DK= 83 B6 C5 EA A9 85 D5 D5
5-DK(6)85 xor (hash value)30=B5==>DK(7)
new DK= 83 B6 C5 EA A9 85 B5 D5
6-move DK(5) to DK(6)
new DK= 83 B6 C5 EA A9 A9 B5 D5
7-move DK(4) to DK(5)
new DK= 83 B6 C5 EA EA A9 B5 D5
8-move DK(3) to DK(4)
new DK= 83 B6 C5 C5 EA A9 B5 D5
9-move DK(2) to DK(3)
new DK= 83 B6 B6 C5 EA A9 B5 D5
10-WE get the saved from step2 into DK(2)
new DK= 83 53 B6 C5 EA A9 B5 D5

step (3)
----------------------------------------
1-CK(3)xor DK(7)xor 2 =84==>34
2-save DK(1) we will use later.
3-DK(8)D5 xor (hash value)34=E1==>DK(1)
new DK= E1 53 B6 C5 EA A9 B5 D5
4-move DK(7) to DK(8)
new DK= E1 53 B6 C5 EA A9 B5 B5
5-DK(6)A9 xor (hash value)34=9D==>DK(7)
new DK= E1 53 B6 C5 EA A9 9D B5
6-move DK(5) to DK(6)
new DK= E1 53 B6 C5 EA EA 9D B5
7-move DK(4) to DK(5)
new DK= E1 53 B6 C5 C5 EA 9D B5
8-move DK(3) to DK(4)
new DK= E1 53 B6 B6 C5 EA 9D B5
9-move DK(2) to DK(3)
new DK= E1 53 53 B6 C5 EA 9D B5
10-WE get the saved from step2 into DK(2)
new DK= E1 83 53 B6 C5 EA 9D B5

step (4)
--------------------------------------
1-CK(4)xor DK(7)xor 2 =6D==>3B
2-save DK(1) we will use later.
3-DK(8)B5 xor (hash value)3B=8E==>DK(1)
new DK= 8E 83 53 B6 C5 EA 9D B5
4-move DK(7) to DK(8)
new DK= 8E 83 53 B6 C5 EA 9D 9D
5-DK(6)EA xor (hash value)3B=D1==>DK(7)
new DK= 8E 83 53 B6 C5 EA D1 9D
6-move DK(5) to DK(6)
new DK= 8E 83 53 B6 C5 C5 D1 9D
7-move DK(4) to DK(5)
new DK= 8E 83 53 B6 B6 C5 D1 9D
8-move DK(3) to DK(4)
new DK= 8E 83 53 53 B6 C5 D1 9D
9-move DK(2) to DK(3)
new DK= 8E 83 83 53 B6 C5 D1 9D
10-WE get the saved from step2 into DK(2)
new DK= 8E E1 83 53 B6 C5 D1 9D

step (5)
----------------------------------------
1-CK(5)xor DK(7)xor 2 =CF==>C8
2-save DK(1) we will use later.
3-DK(8)9D xor (hash value)C8=55==>DK(1)
new DK= 55 E1 83 53 B6 C5 D1 9D
4-move DK(7) to DK(8)
new DK= 55 E1 83 53 B6 C5 D1 D1
5-DK(6)C5 xor (hash value)C8=D==>DK(7)
new DK= 55 E1 83 53 B6 C5 D D1
6-move DK(5) to DK(6)
new DK= 55 E1 83 53 B6 B6 D D1
7-move DK(4) to DK(5)
new DK= 55 E1 83 53 53 B6 D D1
8-move DK(3) to DK(4)
new DK= 55 E1 83 83 53 B6 D D1
9-move DK(2) to DK(3)
new DK= 55 E1 E1 83 53 B6 D D1
10-WE get the saved from step2 into DK(2)
new DK= 55 8E E1 83 53 B6 D D1
step (6)
--------------------------------------
1-CK(6)xor DK(7)xor 2 =54==>56
2-save DK(1) we will use later.
3-DK(8)D1 xor (hash value)56=87==>DK(1)
new DK= 87 8E E1 83 53 B6 D D1
4-move DK(7) to DK(8)
new DK= 87 8E E1 83 53 B6 D D
5-DK(6)B6 xor (hash value)56=E0==>DK(7)
new DK= 87 8E E1 83 53 B6 E0 D
6-move DK(5) to DK(6)
new DK= 87 8E E1 83 53 53 E0 D
7-move DK(4) to DK(5)
new DK= 87 8E E1 83 83 53 E0 D
8-move DK(3) to DK(4)
new DK= 87 8E E1 E1 83 53 E0 D
9-move DK(2) to DK(3)
new DK= 87 8E 8E E1 83 53 E0 D
10-WE get the saved from step2 into DK(2)
new DK= 87 55 8E E1 83 53 E0 D

step (7)
--------------------------------------
1-CK(7)xor DK(7)xor 2 =AF==>BA
2-save DK(1) we will use later.
3-DK(8)D xor (hash value)BA=B7==>DK(1)
new DK= B7 55 8E E1 83 53 E0 D
4-move DK(7) to DK(8)
new DK= B7 55 8E E1 83 53 E0 E0
5-DK(6)53 xor (hash value)BA=E9==>DK(7)
new DK= B7 55 8E E1 83 53 E9 E0
6-move DK(5) to DK(6)
new DK= B7 55 8E E1 83 83 E9 E0
7-move DK(4) to DK(5)
new DK= B7 55 8E E1 E1 83 E9 E0
8-move DK(3) to DK(4)
new DK= B7 55 8E 8E E1 83 E9 E0
9-move DK(2) to DK(3)
new DK= B7 55 55 8E E1 83 E9 E0
10-WE get the saved from step2 into DK(2)
new DK= B7 87 55 8E E1 83 E9 E0

step (8)
------------------------------------------
1-CK(8)xor DK(7)xor 2 =63==>22
2-save DK(1) we will use later.
3-DK(8)E0 xor (hash value)22=C2==>DK(1)
new DK= C2 87 55 8E E1 83 E9 E0
4-move DK(7) to DK(8)
new DK= C2 87 55 8E E1 83 E9 E9
5-DK(6)83 xor (hash value)22=A1==>DK(7)
new DK= C2 87 55 8E E1 83 A1 E9
6-move DK(5) to DK(6)
new DK= C2 87 55 8E E1 E1 A1 E9
7-move DK(4) to DK(5)
new DK= C2 87 55 8E 8E E1 A1 E9
8-move DK(3) to DK(4)
new DK= C2 87 55 55 8E E1 A1 E9
9-move DK(2) to DK(3)
new DK= C2 87 87 55 8E E1 A1 E9
10-WE get the saved from step2 into DK(2)
new DK= C2 B7 87 55 8E E1 A1 E9

ROUND 7
*********
we will Shift CK one bit to the right
old(CK)=52 EB 33 F2 1C 5B 4D 88
new(CK)=29 75 99 F9 E 2D A6 C4
-------------------------------------------
We will use these keys for this ROUND:-
new(CK)=29 75 99 F9 E 2D A6 C4
(DK)=C2 B7 87 55 8E E1 A1 E9
constant=1
--------------------------------------------

step (1)
----------------------------------------
1-CK(1)xor DK(7)xor 1 =89==>DB
2-save DK(1) we will use later.
3-DK(8)E9 xor (hash value)DB=32==>DK(1)
new DK= 32 B7 87 55 8E E1 A1 E9
4-move DK(7) to DK(8)
new DK= 32 B7 87 55 8E E1 A1 A1
5-DK(6)E1 xor (hash value)DB=3A==>DK(7)
new DK= 32 B7 87 55 8E E1 3A A1
6-move DK(5) to DK(6)
new DK= 32 B7 87 55 8E 8E 3A A1
7-move DK(4) to DK(5)
new DK= 32 B7 87 55 55 8E 3A A1
8-move DK(3) to DK(4)
new DK= 32 B7 87 87 55 8E 3A A1
9-move DK(2) to DK(3)
new DK= 32 B7 B7 87 55 8E 3A A1
10-WE get the saved from step2 into DK(2)
new DK= 32 C2 B7 87 55 8E 3A A1
step (2)
-------------------------------------
1-CK(2)xor DK(7)xor 1 =4E==>F9
2-save DK(1) we will use later.
3-DK(8)A1 xor (hash value)F9=58==>DK(1)
new DK= 58 C2 B7 87 55 8E 3A A1
4-move DK(7) to DK(8)
new DK= 58 C2 B7 87 55 8E 3A 3A
5-DK(6)8E xor (hash value)F9=77==>DK(7)
new DK= 58 C2 B7 87 55 8E 77 3A
6-move DK(5) to DK(6)
new DK= 58 C2 B7 87 55 55 77 3A
7-move DK(4) to DK(5)
new DK= 58 C2 B7 87 87 55 77 3A
8-move DK(3) to DK(4)
new DK= 58 C2 B7 B7 87 55 77 3A
9-move DK(2) to DK(3)
new DK= 58 C2 C2 B7 87 55 77 3A
10-WE get the saved from step2 into DK(2)
new DK= 58 32 C2 B7 87 55 77 3A

step (3)
---------------------------------------
1-CK(3)xor DK(7)xor 1 =EF==>91
2-save DK(1) we will use later.
3-DK(8)3A xor (hash value)91=AB==>DK(1)
new DK= AB 32 C2 B7 87 55 77 3A
4-move DK(7) to DK(8)
new DK= AB 32 C2 B7 87 55 77 77
5-DK(6)55 xor (hash value)91=C4==>DK(7)
new DK= AB 32 C2 B7 87 55 C4 77
6-move DK(5) to DK(6)
new DK= AB 32 C2 B7 87 87 C4 77
7-move DK(4) to DK(5)
new DK= AB 32 C2 B7 B7 87 C4 77
8-move DK(3) to DK(4)
new DK= AB 32 C2 C2 B7 87 C4 77
9-move DK(2) to DK(3)
new DK= AB 32 32 C2 B7 87 C4 77
10-WE get the saved from step2 into DK(2)
new DK= AB 58 32 C2 B7 87 C4 77

step (4)
--------------------------------------
1-CK(4)xor DK(7)xor 1 =3C==>30
2-save DK(1) we will use later.
3-DK(8)77 xor (hash value)30=47==>DK(1)
new DK= 47 58 32 C2 B7 87 C4 77
4-move DK(7) to DK(8)
new DK= 47 58 32 C2 B7 87 C4 C4
5-DK(6)87 xor (hash value)30=B7==>DK(7)
new DK= 47 58 32 C2 B7 87 B7 C4
6-move DK(5) to DK(6)
new DK= 47 58 32 C2 B7 B7 B7 C4
7-move DK(4) to DK(5)
new DK= 47 58 32 C2 C2 B7 B7 C4
8-move DK(3) to DK(4)
new DK= 47 58 32 32 C2 B7 B7 C4
9-move DK(2) to DK(3)
new DK= 47 58 58 32 C2 B7 B7 C4
10-WE get the saved from step2 into DK(2)
new DK= 47 AB 58 32 C2 B7 B7 C4

step (5)
------------------------------------------
1-CK(5)xor DK(7)xor 1 =B8==>10
2-save DK(1) we will use later.
3-DK(8)C4 xor (hash value)10=D4==>DK(1)
new DK= D4 AB 58 32 C2 B7 B7 C4
4-move DK(7) to DK(8)
new DK= D4 AB 58 32 C2 B7 B7 B7
5-DK(6)B7 xor (hash value)10=A7==>DK(7)
new DK= D4 AB 58 32 C2 B7 A7 B7
6-move DK(5) to DK(6)
new DK= D4 AB 58 32 C2 C2 A7 B7
7-move DK(4) to DK(5)
new DK= D4 AB 58 32 32 C2 A7 B7
8-move DK(3) to DK(4)
new DK= D4 AB 58 58 32 C2 A7 B7
9-move DK(2) to DK(3)
new DK= D4 AB AB 58 32 C2 A7 B7
10-WE get the saved from step2 into DK(2)
new DK= D4 47 AB 58 32 C2 A7 B7
step (6)
-------------------------------------------
1-CK( 6 )xor DK(7)xor 1 =8B==>55
2-save DK(1) we will use later.
3-DK(8)B7 xor (hash value)55=E2==>DK(1)
new DK= E2 47 AB 58 32 C2 A7 B7
4-move DK(7) to DK(8)
new DK= E2 47 AB 58 32 C2 A7 A7
5-DK(6)C2 xor (hash value)55=97==>DK(7)
new DK= E2 47 AB 58 32 C2 97 A7
6-move DK(5) to DK(6)
new DK= E2 47 AB 58 32 32 97 A7
7-move DK(4) to DK(5)
new DK= E2 47 AB 58 58 32 97 A7
8-move DK(3) to DK(4)
new DK= E2 47 AB AB 58 32 97 A7
9-move DK(2) to DK(3)
new DK= E2 47 47 AB 58 32 97 A7
10-WE get the saved from step2 into DK(2)
new DK= E2 D4 47 AB 58 32 97 A7

step (7)
----------------------------------------
1-CK(7)xor DK(7)xor 1 =30==>14
2-save DK(1) we will use later.
3-DK(8)A7 xor (hash value)14=B3==>DK(1)
new DK= B3 D4 47 AB 58 32 97 A7
4-move DK(7) to DK(8)
new DK= B3 D4 47 AB 58 32 97 97
5-DK(6)32 xor (hash value)14=26==>DK(7)
new DK= B3 D4 47 AB 58 32 26 97
6-move DK(5) to DK(6)
new DK= B3 D4 47 AB 58 58 26 97
7-move DK(4) to DK(5)
new DK= B3 D4 47 AB AB 58 26 97
8-move DK(3) to DK(4)
new DK= B3 D4 47 47 AB 58 26 97
9-move DK(2) to DK(3)
new DK= B3 D4 D4 47 AB 58 26 97
10-WE get the saved from step2 into DK(2)
new DK= B3 E2 D4 47 AB 58 26 97

step (8)
-------------------------------------
1-CK(8)xor DK(7)xor 1 =E3==>BF
2-save DK(1) we will use later.
3-DK(8)97 xor (hash value)BF=28==>DK(1)
new DK= 28 E2 D4 47 AB 58 26 97
4-move DK(7) to DK(8)
new DK= 28 E2 D4 47 AB 58 26 26
5-DK(6)58 xor (hash value)BF=E7==>DK(7)
new DK= 28 E2 D4 47 AB 58 E7 26
6-move DK(5) to DK(6)
new DK= 28 E2 D4 47 AB AB E7 26
7-move DK(4) to DK(5)
new DK= 28 E2 D4 47 47 AB E7 26
8-move DK(3) to DK(4)
new DK= 28 E2 D4 D4 47 AB E7 26
9-move DK(2) to DK(3)
new DK= 28 E2 E2 D4 47 AB E7 26
10-WE get the saved from step2 into DK(2)
new DK= 28 B3 E2 D4 47 AB E7 26
ROUND 8
*********
we will Shift CK one bit to the right
old(CK)=29 75 99 F9 E 2D A6 C4
new(CK)=14 BA CC FC 87 16 D3 62
-------------------------------------------
We will use these keys for this ROUND:-
new(CK)=14 BA CC FC 87 16 D3 62
(DK)=28 B3 E2 D4 47 AB E7 26
constant=0
--------------------------------------------
step (1)
-------------------------------------
1-CK(1)xor DK(7)xor 0 =F3==>54
2-save DK(1) we will use later.
3-DK(8)26 xor (hash value)54=72==>DK(1)
new DK= 72 B3 E2 D4 47 AB E7 26
4-move DK(7) to DK(8)
new DK= 72 B3 E2 D4 47 AB E7 E7
5-DK(6)AB xor (hash value)54=FF==>DK(7)
new DK= 72 B3 E2 D4 47 AB FF E7
6-move DK(5) to DK(6)
new DK= 72 B3 E2 D4 47 47 FF E7
7-move DK(4) to DK(5)
new DK= 72 B3 E2 D4 D4 47 FF E7
8-move DK(3) to DK(4)
new DK= 72 B3 E2 E2 D4 47 FF E7
9-move DK(2) to DK(3)
new DK= 72 B3 B3 E2 D4 47 FF E7
10-WE get the saved from step2 into DK(2)
new DK= 72 28 B3 E2 D4 47 FF E7
step (2)
----------------------------------------
1-CK(2)xor DK(7)xor 0 =45==>EE
2-save DK(1) we will use later.
3-DK(8)E7 xor (hash value)EE=9==>DK(1)
new DK= 9 28 B3 E2 D4 47 FF E7
4-move DK(7) to DK(8)
new DK= 9 28 B3 E2 D4 47 FF FF
5-DK(6)47 xor (hash value)EE=A9==>DK(7)
new DK= 9 28 B3 E2 D4 47 A9 FF
6-move DK(5) to DK(6)
new DK= 9 28 B3 E2 D4 D4 A9 FF
7-move DK(4) to DK(5)
new DK= 9 28 B3 E2 E2 D4 A9 FF
8-move DK(3) to DK(4)
new DK= 9 28 B3 B3 E2 D4 A9 FF
9-move DK(2) to DK(3)
new DK= 9 28 28 B3 E2 D4 A9 FF
10-WE get the saved from step2 into DK(2)
new DK= 9 72 28 B3 E2 D4 A9 FF

step (3)
---------------------------------------
1-CK(3)xor DK(7)xor 0 =65==>84
2-save DK(1) we will use later.
3-DK(8)FF xor (hash value)84=7B==>DK(1)
new DK= 7B 72 28 B3 E2 D4 A9 FF
4-move DK(7) to DK(8)
new DK= 7B 72 28 B3 E2 D4 A9 A9
5-DK(6)D4 xor (hash value)84=50==>DK(7)
new DK= 7B 72 28 B3 E2 D4 50 A9
6-move DK(5) to DK(6)
new DK= 7B 72 28 B3 E2 E2 50 A9
7-move DK(4) to DK(5)
new DK= 7B 72 28 B3 B3 E2 50 A9
8-move DK(3) to DK(4)
new DK= 7B 72 28 28 B3 E2 50 A9
9-move DK(2) to DK(3)
new DK= 7B 72 72 28 B3 E2 50 A9
10-WE get the saved from step2 into DK(2)
new DK= 7B 9 72 28 B3 E2 50 A9

step (4)
-------------------------------------
1-CK(4)xor DK(7)xor 0 =AC==>94
2-save DK(1) we will use later.
3-DK(8)A9 xor (hash value)94=3D==>DK(1)
new DK= 3D 9 72 28 B3 E2 50 A9
4-move DK(7) to DK(8)
new DK= 3D 9 72 28 B3 E2 50 50
5-DK(6)E2 xor (hash value)94=76==>DK(7)
new DK= 3D 9 72 28 B3 E2 76 50
6-move DK(5) to DK(6)
new DK= 3D 9 72 28 B3 B3 76 50
7-move DK(4) to DK(5)
new DK= 3D 9 72 28 28 B3 76 50
8-move DK(3) to DK(4)
new DK= 3D 9 72 72 28 B3 76 50
9-move DK(2) to DK(3)
new DK= 3D 9 9 72 28 B3 76 50
10-WE get the saved from step2 into DK(2)
new DK= 3D 7B 9 72 28 B3 76 50

step (5)
------------------------------------
1-CK(5)xor DK(7)xor 0 =F1==>5B
2-save DK(1) we will use later.
3-DK(8)50 xor (hash value)5B=B==>DK(1)
new DK= B 7B 9 72 28 B3 76 50
4-move DK(7) to DK(8)
new DK= B 7B 9 72 28 B3 76 76
5-DK(6)B3 xor (hash value)5B=E8==>DK(7)
new DK= B 7B 9 72 28 B3 E8 76
6-move DK(5) to DK(6)
new DK= B 7B 9 72 28 28 E8 76
7-move DK(4) to DK(5)
new DK= B 7B 9 72 72 28 E8 76
8-move DK(3) to DK(4)
new DK= B 7B 9 9 72 28 E8 76
9-move DK(2) to DK(3)
new DK= B 7B 7B 9 72 28 E8 76
10-WE get the saved from step2 into DK(2)
new DK= B 3D 7B 9 72 28 E8 76
step (6)
-----------------------------------
1-CK(6)xor DK(7)xor 0 =FE==>AA
2-save DK(1) we will use later.
3-DK(8)76 xor (hash value)AA=DC==>DK(1)
new DK= DC 3D 7B 9 72 28 E8 76
4-move DK(7) to DK(8)
new DK= DC 3D 7B 9 72 28 E8 E8
5-DK(6)28 xor (hash value)AA=82==>DK(7)
new DK= DC 3D 7B 9 72 28 82 E8
6-move DK(5) to DK(6)
new DK= DC 3D 7B 9 72 72 82 E8
7-move DK(4) to DK(5)
new DK= DC 3D 7B 9 9 72 82 E8
8-move DK(3) to DK(4)
new DK= DC 3D 7B 7B 9 72 82 E8
9-move DK(2) to DK(3)
new DK= DC 3D 3D 7B 9 72 82 E8
10-WE get the saved from step2 into DK(2)
new DK= DC B 3D 7B 9 72 82 E8

step (7)
------------------------------------
1-CK(7)xor DK(7)xor 0 =51==>E3
2-save DK(1) we will use later.
3-DK(8)E8 xor (hash value)E3=B==>DK(1)
new DK= B B 3D 7B 9 72 82 E8
4-move DK(7) to DK(8)
new DK= B B 3D 7B 9 72 82 82
5-DK(6)72 xor (hash value)E3=91==>DK(7)
new DK= B B 3D 7B 9 72 91 82
6-move DK(5) to DK(6)
new DK= B B 3D 7B 9 9 91 82
7-move DK(4) to DK(5)
new DK= B B 3D 7B 7B 9 91 82
8-move DK(3) to DK(4)
new DK= B B 3D 3D 7B 9 91 82
9-move DK(2) to DK(3)
new DK= B B B 3D 7B 9 91 82
10-WE get the saved from step2 into DK(2)
new DK= B DC B 3D 7B 9 91 82

step (8)
---------------------------------------
1-CK( 8 )xor DK(7)xor 0 =F3==>54
2-save DK(1) we will use later.
3-DK(8)82 xor (hash value)54=D6==>DK(1)
new DK= D6 DC B 3D 7B 9 91 82
4-move DK(7) to DK(8)
new DK= D6 DC B 3D 7B 9 91 91
5-DK(6)9 xor (hash value)54=5D==>DK(7)
new DK= D6 DC B 3D 7B 9 5D 91
6-move DK(5) to DK(6)
new DK= D6 DC B 3D 7B 7B 5D 91
7-move DK(4) to DK(5)
new DK= D6 DC B 3D 3D 7B 5D 91
8-move DK(3) to DK(4)
new DK= D6 DC B B 3D 7B 5D 91
9-move DK(2) to DK(3)
new DK= D6 DC DC B 3D 7B 5D 91
10-WE get the saved from step2 into DK(2)
new DK= D6 B DC B 3D 7B 5D 91
**************************************************
***********
this one
D6 B DC B 3D 7B 5D 91
we send it to the cam
I finshed i any body have
questions please ask.
mrtoolate

=====================
to get the right value for Example D1 in table1
D for column
1 for row
value=66
__________________________________________________
_____
Hash table 1

0 1 2 3 4 5 6 7 8 9 A B C D E F
0 DA 26 E8 72 11 52 3E 46 - 32 FF 8C 1E A7 BE 2C 29
1 5F 86 7E 75 0A 08 A5 21 - 61 FB 7A 58 60 F7 81 4F
2 E4 FC DF B1 BB 6A 02 B3 - 0B 6E 5D 5C D5 CF CA 2A
3 14 B7 90 F3 D9 37 3A 59 - 44 69 C9 78 30 16 39 9A
4 0D 05 1F 8B 5E EE 1B C4 - 76 43 BD EB 42 EF F9 D0
5 4D E3 F4 57 56 A3 0F A6 - 50 FD DE D2 80 4C D3 CB
6 F8 49 8F 22 71 84 33 E0 - 47 C2 93 BC 7C 3B 9C 7D
7 EC C3 F1 89 CE 98 A2 E1 - C1 F2 27 12 01 EA E5 9B
8 25 87 96 7B 34 45 AD D1 - B5 DB 83 55 B0 9E 19 D7
9 17 C6 35 D8 F0 AE D4 2B - 1D A0 99 8A 15 00 AF 2D
A 09 A8 F5 6C A1 63 67 51 - 3C B2 C0 ED 94 03 6F BA
B 3F 4E 62 92 85 DD AB FE - 10 2E 68 65 E7 04 F6 0C
C 20 1C A9 53 40 77 2F A4 - FA 6D 73 28 E2 CD 79 C8
D 97 66 8E 82 74 06 C7 88 - 1A 4A 6B CC 41 E9 9D B8
E 23 9F 3D BF 8D 95 C5 13 - B9 24 5A DC 64 18 38 91
F 7F 5B 70 54 07 B6 4B 0E - 36 AC 31 E6 D6 48 AA B4

Hash table 2
0 1 2 3 4 5 6 7 8 9 A B C D E F
0 8E D5 32 53 4B 18 7F 95 - BE 30 F3 E0 22 E1 68 90
1 82 C8 A8 57 21 C5 38 73 - 61 5D 5A D6 60 B7 48 70
2 2B 7A 1D D1 B1 EC 7C AA - 2F 1F 37 58 72 88 FF 87
3 1C CB 00 E6 4E AB EB B3 - F7 59 71 6A 64 2A 55 4D
4 FC C0 51 01 2D C4 54 E2 - 9F 26 16 27 F2 9C 86 11
5 05 29 A2 78 49 B2 A6 CA - 96 E5 33 3F 46 BA D0 BB
6 5F 84 98 E4 F9 0A 62 EE - F6 CF 94 F0 EA 1E BF 07
7 9B D9 E9 74 C6 A4 B9 56 - 3E DB C7 15 E3 80 D7 ED
8 EF 13 AC A1 91 C2 89 5B - 08 0B 4C 02 3A 5C A9 3B
9 CE 6B A7 E7 CD 7B A0 47 - 09 6D F8 F1 8B B0 12 42
A 4A 9A 17 B4 7E AD FE FD - 2C D3 F4 B6 A3 FA DF B8
B D4 DA 0F 50 93 66 6C 20 - D8 8A DD 31 1A 8C 06 D2
C 44 E8 23 43 6E 10 69 36 - BC 19 8D 24 81 14 40 C9
D 6F 2E 45 52 41 92 34 FB - 5E 0D F5 76 25 77 63 65
E AF 4F CC 03 9D 0C 28 39 - 85 DE B5 7D 67 83 BD C3
F DC 3C AE 99 04 75 8F 97 - C1 A5 9E 35 0E 3D 1B 79
-------------------------------------------------
**************************************MKL************************************
"Samsung QE55Q80T 4K QLED 55
philips LED TV 40" 100Hz 5605h
Zgemma h7s
Vu+ Ultimo 4K
Vu+ Uno HD
TeVii S472 DVB-S2 PCIe
IdanPlus-Astra 4.9E-Eutelsat 9E-Hotbird 13E-Eutelsat 16E-Badr 26E-Hellas 39E-Turksat 42E-Yahsat 52.5E
שלח תגובה