Block Ciphers
c Eli Biham - May 3, 2005 83 Block Ciphers (4)
Block Ciphers Eli Biham - May 3, 2005 c 83 Block Ciphers (4) - - PowerPoint PPT Presentation
Block Ciphers Eli Biham - May 3, 2005 c 83 Block Ciphers (4) Block Ciphers and Stream Ciphers In practical ciphers the plaintext M is divided into fixed-length blocks M = M 1 M 2 . . . M N . Then, each block M i is encrypted to the
c Eli Biham - May 3, 2005 83 Block Ciphers (4)
c Eli Biham - May 3, 2005 84 Block Ciphers (4)
†
c Eli Biham - May 3, 2005 85 Block Ciphers (4)
c Eli Biham - May 3, 2005 86 Block Ciphers (4)
c Eli Biham - May 3, 2005 87 Block Ciphers (4)
c Eli Biham - May 3, 2005 88 Block Ciphers (4)
c Eli Biham - May 3, 2005 89 Block Ciphers (4)
†
C D PC-1
Key (K)
ROL1 ROL1 PC-2
K1
ROL1 ROL1 PC-2
K2
ROL2 ROL2 PC-2
K3
ROL ROL PC-2
Ki
ROL2 ROL2 PC-2
K13
ROL2 ROL2 PC-2
K14
ROL2 ROL2 PC-2
K15
ROL1 ROL1 PC-2
K16
IP
Plaintext (P)
F F F F F F F F FP
Ciphertext (T)
c Eli Biham - May 3, 2005 90 Block Ciphers (4)
†
input (32 bits)
E
48 bits
S1E S2E S3E S4E S5E S6E S7E S8E
subkey (48 bits)
S1K S2K S3K S4K S5K S6K S7K S8K
S1
S1I S1O
S2
S2I S2O
S3
S3I S3O
S4
S4I S4O
S5
S5I S5O
S6
S6I S6O
S7
S7I S7O
S8
S8I S8O P
c Eli Biham - May 3, 2005 91 Block Ciphers (4)
c Eli Biham - May 3, 2005 92 Block Ciphers (4)
c Eli Biham - May 3, 2005 93 Block Ciphers (4)
c Eli Biham - May 3, 2005 94 Block Ciphers (4)
c Eli Biham - May 3, 2005 95 Block Ciphers (4)
c Eli Biham - May 3, 2005 96 Block Ciphers (4)
c Eli Biham - May 3, 2005 97 Block Ciphers (4)
c Eli Biham - May 3, 2005 98 Block Ciphers (4)
c Eli Biham - May 3, 2005 99 Block Ciphers (4)
†
c Eli Biham - May 3, 2005 100 Block Ciphers (4)
c Eli Biham - May 3, 2005 101 Block Ciphers (4)
†
c Eli Biham - May 3, 2005 102 Block Ciphers (4)
†
c Eli Biham - May 3, 2005 103 Block Ciphers (4)
†
c Eli Biham - May 3, 2005 104 Block Ciphers (4)
c Eli Biham - May 3, 2005 105 Block Ciphers (4)
c Eli Biham - May 3, 2005 106 Block Ciphers (4)
c Eli Biham - May 3, 2005 107 Block Ciphers (4)
†
c Eli Biham - May 3, 2005 108 Block Ciphers (4)
c Eli Biham - May 3, 2005 109 Block Ciphers (4)
c Eli Biham - May 3, 2005 110 Block Ciphers (4)
M1 C1 E M2 C2 E M3 C3 E M4 C4 E M5 C5 E
c Eli Biham - May 3, 2005 111 Block Ciphers (4)
IV M1 C1 E M2 C2 E M3 C3 E M4 C4 E M5 C5 E
c Eli Biham - May 3, 2005 112 Block Ciphers (4)
c Eli Biham - May 3, 2005 113 Block Ciphers (4)
IV M1 C1 E M2 C2 E M3 C3 E M4 C4 E M5 C5 E
c Eli Biham - May 3, 2005 114 Block Ciphers (4)
c Eli Biham - May 3, 2005 115 Block Ciphers (4)
IV M1 C1 E M2 C2 E M3 C3 E M4 C4 E M5 C5 E
c Eli Biham - May 3, 2005 116 Block Ciphers (4)
c Eli Biham - May 3, 2005 117 Block Ciphers (4)
c Eli Biham - May 3, 2005 118 Block Ciphers (4)
P C
P C
c Eli Biham - May 3, 2005 119 Block Ciphers (4)
c Eli Biham - May 3, 2005 120 Block Ciphers (4)
P0 C0
P1 C1
P2 C2
P3 C3
P4 C4
c Eli Biham - May 3, 2005 121 Block Ciphers (4)
P1 C1
P2 C2
P3 C3
P4 C4
P5 C5
IV
c Eli Biham - May 3, 2005 122 Block Ciphers (4)
c Eli Biham - May 3, 2005 123 Block Ciphers (4)
c Eli Biham - May 3, 2005 124 Block Ciphers (4)
i 4
i 4
i
1 i X 2 i
i 4 i
i+1 i+1 i+1 i+1 4 3 2 1
i
i i 3 2 1
i 5
i 3
i 1
i 2
c Eli Biham - May 3, 2005 125 Block Ciphers (4)
c Eli Biham - May 3, 2005 126 Block Ciphers (4)
G G G G Rule A G G G G G G Rule A G G RuleB 1 2 3 4 5 6 7 8 11 12 13 14 15 16 1 G G G RuleB 10 G
c Eli Biham - May 3, 2005 127 Block Ciphers (4)
c Eli Biham - May 3, 2005 128 Block Ciphers (4)
c Eli Biham - May 3, 2005 129 Block Ciphers (4)
†
c Eli Biham - May 3, 2005 130 Block Ciphers (4)
c Eli Biham - May 3, 2005 131 Block Ciphers (4)
word8 S[256] = { 99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22 }; c Eli Biham - May 3, 2005 132 Block Ciphers (4)
c Eli Biham - May 3, 2005 133 Block Ciphers (4)
c Eli Biham - May 3, 2005 134 Block Ciphers (4)
c Eli Biham - May 3, 2005 135 Block Ciphers (4)
c Eli Biham - May 3, 2005 136 Block Ciphers (4)
c Eli Biham - May 3, 2005 137 Block Ciphers (4)
c Eli Biham - May 3, 2005 138 Block Ciphers (4)
c Eli Biham - May 3, 2005 139 Block Ciphers (4)
c Eli Biham - May 3, 2005 140 Block Ciphers (4)
c Eli Biham - May 3, 2005 141 Block Ciphers (4)
c Eli Biham - May 3, 2005 142 Block Ciphers (4)
c Eli Biham - May 3, 2005 143 Block Ciphers (4)
c Eli Biham - May 3, 2005 144 Block Ciphers (4)
c Eli Biham - May 3, 2005 145 Block Ciphers (4)