rhiestan / EncFSMP

Mount EncFS folders - multiplatform style.
https://encfsmp.sourceforge.io/
126 stars 19 forks source link

WARNING MAC comparison failure in block 0 #18

Closed bpavacic closed 5 years ago

bpavacic commented 5 years ago

Hi,

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

$ cat .encfs6.xml 
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="12">
<cfg class_id="0" tracking_level="0" version="20">
    <version>20100713</version>
    <creator>EncFS 1.8.1</creator>
    <cipherAlg class_id="1" tracking_level="0" version="0">
        <name>ssl/aes</name>
        <major>3</major>
        <minor>0</minor>
    </cipherAlg>
    <nameAlg>
        <name>nameio/block</name>
        <major>4</major>
        <minor>0</minor>
    </nameAlg>
    <keySize>256</keySize>
    <blockSize>1024</blockSize>
    <uniqueIV>1</uniqueIV>
    <chainedNameIV>1</chainedNameIV>
    <externalIVChaining>1</externalIVChaining>
    <blockMACBytes>8</blockMACBytes>
    <blockMACRandBytes>0</blockMACRandBytes>
    <allowHoles>1</allowHoles>
    <encodedKeySize>52</encodedKeySize>
    <encodedKeyData>
iN1itJoreRyIzmRCil/XjHkAjOjtZUeyn0IVs3nQDAfSIdws4uNbDPLqmZV+3KiritEiCQ==
    </encodedKeyData>
    <saltLen>20</saltLen>
    <saltData>
id01YOu5QAUdXOZh7ma9oK9TTTE=
    </saltData>
    <kdfIterations>1503741</kdfIterations>
    <desiredKDFDuration>3000</desiredKDFDuration>
</cfg>
</boost_serialization>
bpavacic commented 5 years ago

Posted to the correct repository