All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] blkid and aes-cbc-plain/aes-cbc-essiv:sha256
@ 2012-03-12 21:30 .. ink ..
  2012-03-12 22:36 ` Milan Broz
  0 siblings, 1 reply; 9+ messages in thread
From: .. ink .. @ 2012-03-12 21:30 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]

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?

[-- Attachment #2: Type: text/html, Size: 1122 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-03-13 18:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-12 21:30 [dm-crypt] blkid and aes-cbc-plain/aes-cbc-essiv:sha256 .. ink ..
2012-03-12 22:36 ` Milan Broz
2012-03-13  1:03   ` .. ink ..
2012-03-13 14:46     ` Sven Eschenberg
2012-03-13 14:56       ` Arno Wagner
2012-03-13 16:14         ` .. ink ..
2012-03-13 18:34           ` Arno Wagner
2012-03-13 17:49   ` Javier Juan Martínez Cabezón
2012-03-13 18:38     ` Arno Wagner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.