AES Flashcards
What is ECB?
Electronic Code Block:
Every block of plaintext is encrypted independently and identically, using the same key l
What are ECB’s efficiency?
Parallel Encryption : Yes
Parallel Decryption: Yes
Random Read : Yes
What is ECB’s security?
Fixed function for fixed k, rendering it a simple substitution
What is CBC?
Cipher Block Chaining:
Each block of plaintext is XOR-ed with previous block of ciphertext before it is encrypted using Ek.
There is an initial vector (IV)b used for the very first plaintext.
What is CBC’s efficency?
Parallel Encryption : No
Parallel Decryption: Yes
Random Read : Yes
What is ECB’s security?
Ek is a fixed function for fixed k, but the input changes for each block
What is CTR?
Counter Mode:
Plaintext is encrypted by XOR-ing with a stream generated using E, key k and a (nouce) counter CTR.
What is CTR’s security?
Parallel Encryption : Yes
Parallel Decryption: Yes
Random Read : Yes
What is CTR’s security?
Ek is a fixed function for fixed k, but the input is different for each counter.
The counter must change for each block, cannot repeat for any block , and the pairs must never repeat.
Why use a 256-bit hash length instead of a 128-bit length to pair with aAES-128
Less susceptible to collision attacks
128-bit hash might cause duplicate outputs.
Keystream of {0,1} generated by pseudo-random number generators will be periodic. Secure keystream must necessarily have long period. Show by an example, that even with extremely long period, some keystreams may not be suitable for use to generate encryption keys.
1) Predicable
2) Lack of Randomness
3) Vulnerable to crytanalysis
4) Non-uniform disriibution.
e.g. all zeros follow by all ones
000…000111…111 (and so on)
too much problems