Re: AES counter mode
Kostantinos Koukopoulos <[email protected]> Sun, 2 Jun 2013 14:26:17 +0300
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <CAJzNPXUN707U=XZhLc8_sNP3BENZL-MMjrudejqQb98L+N+YLw@mail.gmail.com> |
On Sun, Jun 2, 2013 at 12:24 PM, Peter Gutmann <[email protected]> wrote: > Implementing counter mode is pretty simple when you've got ECB mode, you just > encrypt the counter in ECB mode and XOR with the data. However, it's very, > very easy to get counter mode wrong, which means a simple XOR is all anyone > needs in order to recover the encrypted data. AES-CTR is the logical > successor to RC4 in terms of both functionality and ease-of-misuse, so you > have to be extremely careful to get it right. I wouldn't use it myself > because it's too easy to get wrong. You can do the same as you require with > CBC, provided you stop and start at a 16-byte boundary. Thank you for your quick answer. One clarification, with CBC I can start/stop the process if I save the last ciphertext block along with key and IV, correct? Also am I wrong to say that I cannot encrypt the plaintext blocks in parallel since I need to have already encrypted all previous blocks to encrypt the next one? Thanks again, Konstantinos _______________________________________________ Cryptlib mailing list [email protected] via Mail: [email protected] Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/ http://news.gmane.org/gmane.comp.encryption.cryptlib Posts from non-subscribed addresses are blocked to prevent spam, please subscribe in order to post messages.