News for hackers. Stuff that matters.
Re:The XAES-256-GCM extended-nonce AEAD by bvrmn on Saturday June 29, 2024 @05:12AM (#40828884)
Agree. Bytes and bits mix is quite awful. For implementation purposes it could be more programming oriented. 0¹²⁸ -> `[0] * 16` (it's python oriented, maybe C has short idiom for that) or nice example with padded data: 0¹²⁰10000111 -> `[0] * 15 || 0b10000111`. `X` should be clearly 'X'.

I guess crypto pros are ok with notation. But for hobbyist it requires some reverse engineering every time.

Re:The XAES-256-GCM extended-nonce AEAD by FiloSottile on Saturday June 29, 2024 @05:38AM (#40828991)
I don't disagree, actually. I was copying the NIST source document notation with 0¹²⁸ and 0¹²⁰10000111, but it probably does more harm than good. `X` was just me being too clever. (In my defense, `X` is formatted differently from variables in the original, and all variables are defined.)

Done. https://github.com/C2SP/C2SP/pull/86/files