Tutorial
Tutorial
C = W ⊕ EK (P ⊕ W)
Originally two different keys were used for pre- and postwhitening,
but Kilian and Rogaway showed (Crypto ’96) that the same key can
be used for both. Show that a similar construction
C = EK (P ⊕ W)
⊕O o ⊕O o ⊕O o
/ s3 / s2 / s1 / s0 / zi
s3 s2 s1 s0 1 2 3 4 5
0000 0000 0000 0000 0000 0000
0001 1000 1100 0110 0011 0001
0010 1001 0100 1010 0101 0010
0111 1011 1101 1110 1111 0111
···
Theorem
If f (x) is irreducible over Z2 , then the period of the output sequence is
equal to the least positive integer N such that f (x) divides 1 + xN .
Note that N is a divisor of 2L − 1 where L is a degree of f (x).
1 X
N−1
C(t) = (2zi − 1) · (2zi+t − 1) for 0 ≤ t ≤ N − 1
N
i=0
The results for the cycles with period N = 5 are presented in the following tables,
one table for each of the cycles from (a).
/ s1 / s1 / z1 = 1, 0, ...
1 0 i
f2 (x):
⊕O o
/ s2 / s2 / s2 / z2 = 1, 0, 0, ...
2 1 0 i
f3 (x):
⊕O o
/ s3 / s3 / s3 / z3 = 1, 0, 0, ...
2 1 0 i
P1 P2 P3 PO 1 PO 2 PO 3
/² /² / ² /O /O /O
⊕ ⊕ ⊕ ⊕ ⊕ ⊕
² ² ²
EK EK EK EK−1 EK−1 EK−1
O O O
• • • •
² ² ²
C0 C1 C2 C3 C0 C1 C2 C3