cipher feedback mode (CFB) is another mode of operation for a block cipher. a weakness of CBC is a full block is required before the ciphertext can be sent, which CFB attempts to improve.
- start with a random initial vector as in CBC.
- output
note that once is computed, the block cipher step for can be computed immediately — no waiting for required. this means that as bits of arrive, we can encrypt them immediately without waiting for the block to fill.
an ancillary advantage is that we don’t have to pad the last block.