projects
/
tfcrypt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tfcrypt: fix "-M mac -u" failing to decrypt data due to missing ctr.
[tfcrypt.git]
/
tfcrypt.c
diff --git
a/tfcrypt.c
b/tfcrypt.c
index 5182a34a8467344dd3b306d17d10340b1f49efb3..9e0e6293804f258d2e00cae1bfee6a578b749da7 100644
(file)
--- a/
tfcrypt.c
+++ b/
tfcrypt.c
@@
-1205,6
+1205,7
@@
_decrypt_again_vrfy2:
}
total_processed_src = rwd;
memcpy(ctr, svctr, TF_BLOCK_SIZE);
+ if (ctr_mode == TFC_MODE_STREAM) tfe_init_iv(&tfe, key, ctr);
memset(svctr, 0, TF_BLOCK_SIZE);
}