tfcrypt: fix "-M mac -u" failing to decrypt data due to missing ctr.
authorAndrey Rys <rys@lynxlynx.ru>
Wed, 9 Nov 2022 19:01:14 +0000 (20:01 +0100)
committerAndrey Rys <rys@lynxlynx.ru>
Wed, 9 Nov 2022 19:01:14 +0000 (20:01 +0100)
The symptom is that, even if encrypted stream is signed with MAC, and
on decryption says "signature is good", decrypted content is unavailable
and only encrypted garbage is written back.

This is due to unitialized counter (IV). This affects only STREAM mode.

If anyone ran into trouble, simply don't use -u option with -M mac.
Verifying MAC alone or skipping it with -M drop shall be safe.


No differences found