block cipher modes Flashcards

1
Q

Which block cipher modes can operate like a stream cipher?

A

CFB, OFB, and CTR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which block cipher modes cannot operate like a stream cipher?

A

ECB, CBC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

unencrypted IV for the first block

XORs the cipher text of the previous block with current plaintext block

A

Cipher Block Chaining (CBC)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Converts the block cipher into a self-synchronizing key stream cipher.
Has error propegation

A

Cipher Feedback (CFB)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the difference between CFB and OFB?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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.

A

Output Feedback (OFB)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Converts the block cipher into a stream cipher.

Generates a nonce and encrypts it, then XORs each block with the keystream value.

A

Counter Mode (CTR)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the advantage of CTR?

A

each block is processed independently of the others;

Low cryptographic cost and no error propagation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Difference between CTR and OFB?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which two are vulnerable to error propegation?

A

CFB, CBC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly