Closed edlmo closed 10 years ago
It works for me. Also, you don't need to pipe two tombs, you can just tomb open -k /path/image.jpg /path/file.tomb
Just checked the problem on debian (jessie) with a brand new tomb following this steps:
tomb . Commanded to open tomb secret.tomb
tomb . Valid key file found: ./secret.tomb.key
tomb . Mountpoint not specified, using default: /media/secret.tomb
tomb (*) Opening secret.tomb on /media/secret.tomb
tomb . This tomb is a valid LUKS encrypted device.
tomb . Cipher is "aes" mode "xts-plain64:sha256" hash "sha1"
tomb . A password is required to use key secret.tomb.key
tomb . Valid key file found: ./secret.tomb.key
tomb . Password OK.
No key available with this passphrase.
tomb [E] Failure mounting the encrypted file.
Okay, now I can reproduce it. My tombs don't live too long, and I didn't realize that my tomb was post-bug. I'm looking into it.
Hi, thanks for this report, very sensible bug introduced by the refactoring (still workin on it)
The bug may be in the new gpg decoder, the runtest script might have some interesting output already, yet this shows also the need for a regression test on old keys.
Hi @jaromil , thanks to you! This is an awesome application, keep it going.
Cheers. I could reproduce the bug (occurring on my years old tombs) but still cant find the cause.
Apparently the secret is integral, wondering about newline termination or so? maybe useful to hexdump the decoded key material in both versions of tomb and compare them byte by byte...
Newline thing indeed, without going further on the other options, by adding "-n" to the print on this line the mount_tomb function is working again on a tomb created before the 5158c38 commit.
Great, mine was just a guess, thanks for taking the time to verify that, indeed it opens well also my old tombs now, that was it.
Perfect, gracias!
hi, my problem is: tomb [W] Attempting key recovery. tomb . Password OK. tomb [E] Failure mounting the encrypted file.
@genius-Loci: If using ZSH 5.3 see the README.md or #232
Problem solved, Thank you.
Using Tomb for about 4-5 months here. After pull the repository today, Tomb is no longer able to use the secret key to mount the encrypted file I have always used. I've followed the problem to the commit 5158c38, but didn't look further.
Here is the output from my command line (real paths has been changed):