mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-10 18:41:00 -04:00
37f4bee92a
It is important we copy the left-overs in the message *before* we XOR it into the ciphertext, because if we're encrypting in-place (i.e., m == c), we will manipulate the message that will be used for tag generation. This will generate faulty tags when message length doesn't conform with 16 byte blocks.