CTR mode

Counter mode: a way of using a block cipher that encrypts a running counter to make keystream, then combines that with the message using XOR.

In more detail

CTR mode turns a block cipher such as AES into a stream cipher, so blocks can be processed in parallel and no padding is needed. It keeps data secret but offers no integrity, so flipping a bit of the ciphertext flips the same bit of the plaintext without anyone noticing. The nonce and counter must never repeat under one key, and GCM is CTR mode with an authentication tag added.

Examples

cmd = ["openssl", "enc", "-aes-256-ctr", "-K", KEY, "-iv", IV]
bank reads:  pay 9100.00 GBP to 12345678

Related terms

Taught in

References