You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to decode files (WARNING MAC comparison failure in block 0) #559
I am running encfs version 1.9.5 on an Ubuntu box.
Many files I have encrypted have suddenly become unreadable - I am getting a "MAC comparison failure in block 0" error:
$ encfsctl cat . pYyW,TEr7GgZkMuXon7E6Qew/DOYIHjSVGwUpq4zMvuTvclp4/v1xg9YU5loccxZZzs8kV,4,G/GxtilKL6Zfsg0AtPBSMKmzBQ
EncFS Password:
2019-10-01 17:36:55,859 WARNING MAC comparison failure in block 0
I highly doubt the files themselves are corrupted. Mounting the encrypted folder with --forcedecode results in corrupted files.
Renaming the folders COULD be the reason as I have moved some folders around.
Is there anything I can do to get the files back? Please help
Hi,
it turned out to be related to "filename to IV header chaining" #141 (externalIVChaining=1). I recently had to recover the (encrypted) contents from Google Drive using Insync on Ubuntu and Insync failed to pick up and re-upload files that I have moved around.
I have managed to recover some of the files by moving encrypted versions back to their original folders if I could recall where it was. I have pulled some files from a backup hard drive literally on another continent. Lots of scripting and manual work was involved.
Can you please confirm that the following configuration will have atomic moves (underlying FS move only with no re-encryption or modifications to encrypted files)?
No modification to files' content, but filenames may change, see man note on Filename Initialization Vector Chaining which is activated in your configuration.
Closing the issue as encfs is working as intended. It is just something worth keeping in mind when using tools synchronizing encrypted files to the cloud.
Activity
rfjakob commentedon Oct 12, 2019
Did you have a crash / network drive disconnect / some other problems during moving the folders?
bpavacic commentedon Oct 14, 2019
Hi,
it turned out to be related to "filename to IV header chaining" #141 (externalIVChaining=1). I recently had to recover the (encrypted) contents from Google Drive using Insync on Ubuntu and Insync failed to pick up and re-upload files that I have moved around.
I have managed to recover some of the files by moving encrypted versions back to their original folders if I could recall where it was. I have pulled some files from a backup hard drive literally on another continent. Lots of scripting and manual work was involved.
Can you please confirm that the following configuration will have atomic moves (underlying FS move only with no re-encryption or modifications to encrypted files)?
benrubson commentedon Oct 26, 2019
No modification to files' content, but filenames may change, see man note on Filename Initialization Vector Chaining which is activated in your configuration.
bpavacic commentedon Oct 30, 2019
Closing the issue as encfs is working as intended. It is just something worth keeping in mind when using tools synchronizing encrypted files to the cloud.
Squashed 'vendor/github.com/google/benchmark/' changes from 5b7683f4.…
Squashed 'vendor/github.com/muflihun/easyloggingpp/' changes from 468…