mirror of
https://github.com/ziglang/zig.git
synced 2026-03-11 21:59:52 +00:00
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.