Thursday, 6 March 2008

DES (07) - Sbox ????????????????????

Exclusive OR ??????????? ?????? 48 bits ??????? block ? ??????????? input ??? S-box ??? ????????? ???????????? ????????? ? Block ? ??????? 6 bits ???????? ? ??? block (B1) ?? ??????? 1-6 bits ????????? ?????????? Block (B8) ????? 42-48 bits ????????? ? Block ? ?? ????? S-box ??? ??? ???????? ?S1 ??? S8 ?? ? S-box ???????? Input bit ? 6 bits ???????? output ? 4 bits ????????? ? S-box ? ????? table ??? ???(?) ??? ??????? ?
???(?)

??? S1 ????? input 6 bits ?? B1 ? 6 bits ????????? ? ???? ?????? B1 ??? 1-6 bits ?? 011011 ????????? ? ???? 6 bits ??? ??????? ??? ????????? bit ????? binary code ??? ???????????? Row no 0 ?? 3 ?? ????????? ? 00 ?? Row no 0, 01 ?? Row no 1, 10 ?? Row no 2 ??? 11 ?? Row no 3 ????????? ? ???? 4 bits ????? Column no ????? ????????? ? Column no ?????????? ?????????????? ??????????
0000 - Column no 0
0001 - Column no 1
0010 - Column no 2
0011 - Column no 3
0100 - Column no 4
0101 - Column no 5
0110 - Column no 6
0111 - Column no 7
1000 - Column no 8
1001 - Column no 9
1010 - Column no 10
1011 - Column no 11
1100 - Column no 12
1101 - Column no 13
1110 - Column no 14
1111 - Column no 15
???????? 011011 ??? S1 ??? ???????????? row ? 01 ??? column ? 1101 ????????? ? S1 ? row 1 ??? column 13 ??????????? 5 ??????? S1 ??? output (4 bits) ?? 0101 ????????? ? ??????? S2 ? S8 ??? ????? ?????????????? output ????? 48 bits ?????? ?

No comments: