Block Ciphers Flashcards
Briefly explain how block ciphers work.
They permutate a plain text by repeating a simple round function. The number of rounds is either fixed or not. More rounds means more secure.
Each round uses a round key, derived from private key k.
Why should the round function be invertible?
Because the decryption round keys are used in opposite order.
Explain Shannons confusion diffusion paradigm.
Confusion: Split the block into smaller blocks and aplly a substitution on each block
Diffusion: Mix permutations so that local change can effect the whole block.
What is SPN?
Substitution-Permutation Networks, based on shannon confusion diffusion paradigm.
It uses Key mixing, substitution and permutation.
Explain the Avalanche effect
A small change in the input must affect every bit of the output
When a bit is changed at the input of the S-Box, how many bits are effect at the output of the Sbox?
At least 2
What is the core principle (question) in the security game of block ciphers?
Can an adversary distinguish between the block cipher or an PRP (psuedo random permutation)
What is the minimal rounds that are needed in block cipher for them to become “safe”
7
Does Feistel Ciphers require invertible round function?
No, decryption can be obtained because the round function input is perserved per round. (hence the XOR function can be reversed)
Are Feistel ciphers hard or easy for hardware?
Easy, encr/decr uses the same logic, only keys are in reverse order.
What does the security of Feistel Ciphers depend on?
- Round keys
- number of rounds (r)
- round function (F)
What is DES, and what are its parameters?
Data Encryption Standard: type of Feistel Cipher
* 16 rounds
* 64 bit block size
* 56 bit key length
* 48 bit round key length
Explain the steps of DES
- Devide plaintexts into 64 bits blocks
- Perform initial permutation (IP)
- split left and right
- perform 16 rounds
- join left and right back together
- perform final reverse permutation
Explain the steps of Function F of DES
- Expension permutation
- Xor with round key
- S-Box
- P-Box
Why does the function F of DES perform Expension permutation?
It needs to expend the 32 input bits to 48, in order to XOR with round key.