block cipher modes Flashcards
Which block cipher modes can operate like a stream cipher?
CFB, OFB, and CTR
Which block cipher modes cannot operate like a stream cipher?
ECB, CBC
unencrypted IV for the first block
XORs the cipher text of the previous block with current plaintext block
Cipher Block Chaining (CBC)
Converts the block cipher into a self-synchronizing key stream cipher.
Has error propegation
Cipher Feedback (CFB)
What is the difference between CFB and OFB?
CFB turns the block into a stream cipher/keystream generator and encrypts it bit-by-bit in real time.
OFB has no error propagation because the seed value (IV) is applied BEFORE data becomes ciphertext or the XOR process. Not encrypted real time.
Converts the block cipher to a synchronous stream output.
The first stage XORs the block with the encrypted version of the IV value. The output of the first stage encryption is then seeded into the next stage before encryption as its IV and encrypts/X-ORs afterward.
Output Feedback (OFB)
Converts the block cipher into a stream cipher.
Generates a nonce and encrypts it, then XORs each block with the keystream value.
Counter Mode (CTR)
What is the advantage of CTR?
each block is processed independently of the others;
Low cryptographic cost and no error propagation.
Difference between CTR and OFB?
OFB blocks are given seed value generated from the pre-XOR cipher stage of the previous block, then XORs/encrypts after seeding
CTR blocks are XORed with incremental keystream (nonce+incremental value), meaning feedback from previous block is not needed allowing parallel processing.
Which two are vulnerable to error propegation?
CFB, CBC