AES-GCM and breaking it on nonce reuse
frereit.de
AES-GCM and breaking it on nonce reuse
1–10 of 64 posts
Re: AES-GCM and breaking it on nonce reuse
#2What do you think the ratios are regarding improper use of nonce with this mode?
Most implementations that I am familiar with intentionally generate a random nonce to help lower the percentage of app devs doing this very thing
Re: AES-GCM and breaking it on nonce reuse
#3Great post! Thanks for taking the time to put this up. What do you think the ratios are regarding improper use of nonce with this mode? Most implementations that I am familiar with intentionally generate a random nonce to help lower the percentage of app devs doing this very thing
Re: AES-GCM and breaking it on nonce reuse
#4Great post! Thanks for taking the time to put this up. What do you think the ratios are regarding improper use of nonce with this mode? Most implementations that I am familiar with intentionally generate a random nonce to help lower the percentage of app devs doing this very thing
Re: AES-GCM and breaking it on nonce reuse
#5Also, if the attacker only has c1 and c2, if the nonce is reused then c1 xor c2 will be the same as p1 xor p2. In most cases, two plaintexts xored with each other are trivial to decode.
Re: AES-GCM and breaking it on nonce reuse
#6Great post! Thanks for taking the time to put this up. What do you think the ratios are regarding improper use of nonce with this mode? Most implementations that I am familiar with intentionally generate a random nonce to help lower the percentage of app devs doing this very thing
I think the writer is @frereit, they submitted 2 days ago https://news.ycombinator.com/item?id=40623885
If I had to, based on absolutely nothing but a gut feeling, guess, I'd think this may appear more frequently in IoT devices, where AES-GCM is attractive because of its speed, but randomness is sometimes in low supply?
Re: AES-GCM and breaking it on nonce reuse
#7Re: AES-GCM and breaking it on nonce reuse
#8Great post! Thanks for taking the time to put this up. What do you think the ratios are regarding improper use of nonce with this mode? Most implementations that I am familiar with intentionally generate a random nonce to help lower the percentage of app devs doing this very thing
When I use AES-GCM I just use a bigger nonce and use a random one.
Last time I used AES-GCM I had a really hard time getting the person writing the other end to not re-use nonces.
Re: AES-GCM and breaking it on nonce reuse
#9It's worth mentioning AES-GCM-SIV[1], which is the fix for this issue. [1] https://www.rfc-editor.org/rfc/rfc8452.html
Re: AES-GCM and breaking it on nonce reuse
#10Earlier quoted context omitted.
I think the writer is @frereit, they submitted 2 days ago https://news.ycombinator.com/item?id=40623885
Yes, I am, but unfortunately I do not think I can provide any answers here. A quick internet search reveals some CVEs for nonce reuse. If I had to, based on absolutely nothing but a gut feeling, guess, I'd think this may appear more frequently in IoT devices, where AES-GCM is attractive because of its speed, but randomness is sometimes in low supply?
I think one reason nonce-reuse is a problem in IoT is lack of experience and awareness. Up until relatively recently a lot of embedded development was constrained to just offline devices, so cryptography wasn’t really required.