diff options
Diffstat (limited to 'internal/contentenc/content.go')
-rw-r--r-- | internal/contentenc/content.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/contentenc/content.go b/internal/contentenc/content.go index dd3b77a..c42a844 100644 --- a/internal/contentenc/content.go +++ b/internal/contentenc/content.go @@ -113,7 +113,10 @@ func (be *ContentEnc) DecryptBlock(ciphertext []byte, blockNo uint64, fileID []b // Extract nonce nonce := ciphertext[:be.cryptoCore.IVLen] if bytes.Equal(nonce, be.allZeroNonce) { - panic("Hit an all-zero nonce. This MUST NOT happen!") + // Bug in tmpfs? + // https://github.com/rfjakob/gocryptfs/issues/56 + // http://www.spinics.net/lists/kernel/msg2370127.html + return nil, errors.New("all-zero nonce") } ciphertextOrig := ciphertext ciphertext = ciphertext[be.cryptoCore.IVLen:] |