Grey Area

🔒 Manual approval

@greyarea@mitra.vpclmulqdq.moe · Joined ⁨Aug⁩ ⁨2023⁩

脳を焼かれた独立傭兵
荒事と情報戦
Applied Cryptography/System Programming
You are cordially invited to a night at the opera.

Replying to @⁨greyarea@mitra.vpclmulqdq.moe⁩

@silverpill

Think 5.1.3 (AuthEncap) is better since it still uses an ephemeral key, but does an extra DH to authenticate the sender. 5.1.1 (Encap) is simpler, but unless the aad contains at least the sender's identity, there is nothing preventing someone from extracting a ciphertext, and re-signing it (forging the origin).

Having a trivial amount of AAD is computationally cheaper than doing the extra DH, but the extra DH would be sub 100 usec, so this is "pick something to taste".

ps: Spent the day chasing LLVM bugs, errors in this would be all mine.