Re:AES-GCM and breaking it on nonce reuse
by frereit on Wednesday June 12, 2024 @07:59AM
(#40657072)
Well, the nonce is (usually) public information. It is shared along with the ciphertext, so that the other party can use the same nonce to validate and decrypt the ciphertext.
So it is trivial to detect which two messages share a nonce, if any do.
[ Parent
| on HN ]
Re:AES-GCM and breaking it on nonce reuse
by random_ind_dude on Wednesday June 12, 2024 @04:36PM
(#40662805)
>T1 ⊕ T2 = ((U10 ⨂ H3) ⊕ (U11 ⨂ H2) ⊕ (U12 ⨂ H) ⊕ Ek(y0)) ⊕ ((U20 ⨂ H3) ⊕ (U21 ⨂ H2) ⊕ (U22 ⨂ H) ⊕ Ek(y0))
= ((U10 ⊕ U20) ⨂ H4) ⊕ ((U11 ⊕ U21) ⨂ H2) ⊕ ((U12 ⊕ U22) ⨂ H).
Shouldn't the result be ((U10 ⊕ U20) ⨂ H3) ⊕ ((U11 ⊕ U21) ⨂ H2) ⊕ ((U12 ⊕ U22) ⨂ H) ?