- Consider a cipher that uses a 16 bit key and 16 bit blocks. Let A and B both be permutations matrices used in the cipher, assuming that A and B are expressed in a similar manner to how IP is expressed in DES. Let C be a matrix that represents the equivalent permutation to applying A, followed by applying B. (Thus, C(x) = B(A(x)), where x is a 16 bit input.) Determine C given the matrices A and B below:
|A=[11||14||6||1||]||B = [||7||4||1 12]|
2) Imagine a DES-like cipher with a block size of 16 with the following IP matrix:
What is the corresponding IP-1 matrix?
- If the input into all 8 S-boxes in DES is 8df63098e724, what is the output? Please express your output in 8 hexadecimal characters.
- The first part of the function F in a round of DES expands the 32-bit input (from the right half of the previous round) to 48 bits. If this input, in HEX to the function F is BF8293E6, what is the output of the expansion matrix. Express your answer as 12 hexadecimal characters.
- In the specification of DES, the key is represented as 64 bits, of which some are parity bits. Label all the bits (including parity bits) as k1, k2, …, k64. If you knew the values of k1 through k16, but had to perform a brute force search through the other bits of the key, how long, in the worst case, would it take you to find the key, given that you can search through 220keys in one second? Please express your answer in days, rounded to the nearest day.
|6) Let the input to the MixCols (during AES encryption) be [2||8||2||3].|
|What’s the output in row 4 col 1? (The matrix by which to “multiply” is [01||02||03||01].)|
- In the key expansion algorithm of AES, if w = 8EFA5329 and w = 7EE826D3, what is w?
- Consider the process of AES Key Expansion. Imagine that we have:
w = 3A 74 E5 8D (in hex)
w = 8F 17 60 C2 (in hex)
Calculate w, showing each of the following intermediate results: RotWord(temp), SubWord(RotWord(temp)), Rcon[i/4], and the result of the XOR with Rcon[i/4].
- Without examining all entries in the 16 round key schedule of DES, determine whether or not each number (which represents a bit location in the original key in each of the 16 boxes labeled “Round 1” through “Round 16”) appears the exact same number of times collectively in the 16 boxes. (As an example, 10 appears in round except rounds 4, 12 and 14, so it appears 13 times.) Give proof of your answer.
|10) Consider an AES plaintext of||[45||32] with a key of 128 1s. Show the state|
matrix after the shift rows step in Round 1.