[an error occurred while processing this directive]
Example 3.3
Suppose we have the following three pairs of plaintexts and ciphertexts, where the plaintexts have the specified x-ors, that are encrypted using the same key. We use a hexadecimal representation, for brevity:
|
plaintext
| ciphertxt
|
|
748502CD38451097
| 03C70306D8A09F10
|
3874756438451097
| 78560A0960E6D4CB
|
|
486911026ACDFF31
| 45FA285BE5ADC730
|
375BD31F6ACDFF31
| 134F7915AC253457
|
|
357418DA013FEC86
| D8A31B2F28BBC5CF
|
12549847013FEC86
| 0F317AC2B23CB944
|
|
From the first pair, we compute the S-box inputs (for round 3) from Equations (3.2) and (3.3). They are:
![](images/03-27d.jpg)
The S-box output x-or is calculated using Equation (3.1) to be:
![](images/03-28d.jpg)
From the second pair, we compute the S-box inputs to be
![](images/03-29d.jpg)
and the S-box output x-or is
![](images/03-30d.jpg)
From the third pair, the S-box inputs are
![](images/03-31d.jpg)
and the S-box output x-or is
![](images/03-32d.jpg)
Next, we tabulate the values in the eight counter arrays for each of the three pairs. We illustrate the procedure with the counter array for J1 from the first pair. In this pair, we have and . The set
![](images/03-33d.jpg)
Since E1 = 000000, we have that
![](images/03-34d.jpg)
Hence, we increment the values 0, 7, 40, and 47 in the counter array for J1.
The final tabulations are now presented. If we think of a bit-string of length six as being the binary representation of an integer between 0 and 63, then the 64 values correspond to the counts of 0, 1, . . . , 63. The counter arrays are as follows:
J1
|
1
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
|
0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 3
|
0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
J2
|
0
| 0
| 0
| 1
| 0
| 3
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0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