News for hackers. Stuff that matters.
Re:Restic Cryptography by tedunangst on Wednesday August 30, 2017 @04:10PM (#15135549)
Well, in comparison, there are plenty of opportunities for grave mistakes with AES-GCM.
Re:Restic Cryptography by azinman2 on Thursday August 31, 2017 @02:49AM (#15138610)
Pointers?
Re:Restic Cryptography by wolf550e on Thursday August 31, 2017 @06:34AM (#15139379)
Nonce reuse
Re:Restic Cryptography by azinman2 on Thursday August 31, 2017 @12:53PM (#15141677)
Isn’t that a gotcha for anytime you’d use a nonce?

Meanwhile PubNub is using a hard coded IV on every message in ECB and CBC modes :)

https://github.com/pubnub/javascript/blob/master/src/core/co...

Re:Restic Cryptography by kaoD on Thursday August 31, 2017 @11:36AM (#15141038)
Well that's a gotcha on AES-CTR too.

GP is asking about mistakes that could happen on AES-GCM that won't happen with AES-CTR+HMAC.

I'm no crypto expert, but I'd say there are more opportunities of messing up with AES-CTR+HMAC like forgetting to MAC the IV.

Re:Restic Cryptography by tedunangst on Thursday August 31, 2017 @02:06PM (#15142386)
Nonce reuse for CTR gives you the plaintext of those messages. (Well, the XOR of them, from which you can probably figure out the rest.) Nonce reuse for GCM gives up the key.