Output feedback mode (OFB) turns a block cipher into a stream cipher by repeatedly encrypting an initialization vector and XORing the resulting keystream with plaintext. section 5.3
Its defining implementation properties are:
- Generates the keystream from the encrypted IV rather than from ciphertext. section 5.3
- Avoids CFB-style error propagation because ciphertext is not fed back into encryption. section 5.3
- Produces ciphertext by XORing plaintext with the generated keystream. section 5.3
Figure 5.4 Stream ciphers generate a keystream, which is subsequently XORed to encrypt. Block ciphers directly output the ciphertext after encryption.
Use the stream-cipher diagram to visualize OFB's keystream-then-XOR structure. section 5.3
