blkid and aes-cbc-plain/aes-cbc-essiv:sha256

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





when a plain volume is created with "aes-cbc-plain" and opened with "aes-cbc-essiv:sha256", the blkid program correctly reads the file system of the volume but mount command fails to mount it. Is this behavior expected behavior?

I am the developer of zulucrypt, the frontend to cryptsetup and i support both by first trying to open the volume with "aes-cbc-essiv:sha256" and then with "aes-cbc-plain" if the former fail.This allows the tool to seamlessly open "old" plain  volumes in legacy mode

The above works but the mount system call adds ugly looking logs to /var/syslog when it fails to mount the volume the first time around i am trying to see if i can get around this.

It would have been great if blkid  would fail to read the file system to tell me the plain volume is opened in wrong mode but it reads it correctly leaving it up to mount command to notice the wrong mode and then fail to mount and add the ugly looking log entry.

can i use any cryptsetup API to distinguish volumes created with those two cyphers?
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt

[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux