24 ms·
"Encrypting data: Use AES in CTR (Counter) mode, and append an HMAC." Google search: "cryptography answers" :-)
by cperciva 13y ago
"Encrypting data: Use AES in CTR (Counter) mode, and append an HMAC."
Google search: "cryptography answers" :-)
- JeremyBanks 13y agoDoes it have advice for selecting an IV?
- cperciva 13y agoCTR mode doesn't have IVs. It has a counter: Start at zero and count upwards.
- X-Istence 13y agoDepending on if the key may be reused having a non-zero nonce may be a good idea too... --- And I just realised who I am replying too, off course you know this.
- cperciva 13y agoI was being a bit facetious in discriminating between "IV" and "nonce"... they're almost two sides of the same coin.
- StavrosK 13y agoAnd don't overflow.
- tedunangst 13y agoSadly, not sure that would have helped. Aes ctr is vulnerable to the exact same reused key vuln. Picking the wrong stream cipher isn't the problem.
- cperciva 13y agoPicking the wrong stream cipher isn't the problem, but it is a problem. RC4: Just Say No.
- tptacek 13y ago[cryptography answers] gives me: * Hottest 'cryptography' answers [stackoverflow.com] * Hottest 'cryptography' answers [bitcoin.stackexchange.com] * 'cryptography' Answers By New Users [bitcoin.stackexchange.com] * CISSP Exam Cram, Second Edition [safaribooksonline.com] * CEH® Certified Ethical Hacker Study Guide [safaribooksonline.com] * CISSP Rapid Review [safaribooksonline.com] I think you wanted to suggest searching for [cryptographic right answers]. But of course, nobody will search for that.
- cperciva 13y agoLooks like Google is reordering results for us. When I'm logged in, daemonology.net is the first result I get for [cryptography answers]; when I'm incognito, it's 3rd, after two crypto.stackexchange.com pages.