From the course: Symmetric Cryptography Essential Training
Unlock the full course today
Join today to access over 24,100 courses taught by industry experts.
CTR: Counter mode
From the course: Symmetric Cryptography Essential Training
CTR: Counter mode
- [Instructor] The final mode I'll be covering is counter mode, sometimes referred to as CTR mode. This is another mode that looks like a stream cipher, but here, each block encrypts a unique counter value that's combined with an initialization vector. The output of this encryption is XOR-ed with the plaintext block to create the ciphertext block. Here, you see that the decryption is the same as the encryption, with the ciphertext blocks and the plain text blocks just reversed. Like output feedback, ciphertext isn't actually involved in producing later blocks. And also like output feedback, error correction that's applied to the plaintext will still work properly. Unlike output feedback, though, we can do both encryption and decryption in parallel. That allows us to massively speed up encryption and to have access to the plaintext at any position in the ciphertext. One important and hopefully obvious thing to note is that the counter value in integer must be represented consistently…
Contents
-
-
-
-
-
-
-
(Locked)
Introduction to block cipher modes2m 51s
-
(Locked)
Cipher block chaining (CBC)1m 51s
-
(Locked)
CFB: Cipher feedback1m 10s
-
(Locked)
OFB: Output feedback1m 25s
-
(Locked)
CTR: Counter mode1m 3s
-
(Locked)
Challenge: Building a block cipher with CBC mode2m 14s
-
(Locked)
Solution: Building a block cipher with CBC mode1m 3s
-
(Locked)
-
-