Which of the following is the block cipher mode of operation that confuses or diffuses plaintext as the cipher’s input? (Wentz QOTD)
A. Electronic codebook (ECB)
B. Cipher feedback (CFB)
C. Output feedback (OFB)
D. Counter (CTR)
Kindly be reminded that the suggested answer is for your reference only. It doesn’t matter whether you have the right or wrong answer. What really matters is your reasoning process and justifications.
My suggested answer is A. Electronic codebook (ECB).
Wentz’s book, The Effective CISSP: Security and Risk Management, helps CISSP and CISM aspirants build a solid conceptual security model. It is a tutorial for information security and a supplement to the official study guides for the CISSP and CISM exams and an informative reference for security professionals.
My justification, as follows, is an excerpt of Wikipedia:
Mode | Formulas | Ciphertext | |
---|---|---|---|
Electronic codebook | (ECB) | Y_{i} = F(PlainText_{i}, Key) | Y_{i} |
Cipher block chaining | (CBC) | Y_{i} = PlainText_{i} XOR Ciphertext_{i−1} | F(Y, Key); Ciphertext_{0} = IV |
Propagating CBC | (PCBC) | Y_{i} = PlainText_{i} XOR (Ciphertext_{i−1} XOR PlainText_{i−1}) | F(Y, Key); Ciphertext_{0} = IV |
Cipher feedback | (CFB) | Y_{i} = Ciphertext_{i−1} | Plaintext XOR F(Y, Key); Ciphertext_{0} = IV |
Output feedback | (OFB) | Y_{i} = F(Y_{i−1}, Key); Y_{0} = F(IV, Key) | Plaintext XOR Y_{i} |
Counter | (CTR) | Y_{i} = F(IV + g(i), Key); IV = token() | Plaintext XOR Y_{i} |
Note: g(i) is any deterministic function, often the identity function.
ECB and CBC transform plaintext as input into ciphertext:
The following modes transform the key into a keystream used in a stream cipher instead of transforming plaintext into ciphertext:
Reference
以下哪項是混淆或擴散明文作為密碼輸入的分組密碼操作模式？ (Wentz QOTD)
A. 電子碼本 (ECB)
B. 密碼反饋 (CFB)
C. 輸出反饋 (OFB)
D. 計數器 (CTR)