[dm-crypt] RHEL6 crypto support

David Li w.david.li at gmail.com
Fri Jan 18 20:16:42 CET 2013


Here is a newbie question.

I encountered an error at luksFormat on a loop device:

device-mapper: reload ioctl failed: Invalid argument
Failed to setup dm-crypt key mapping for device /dev/loop0.
Check that kernel supports aes-cbc-essiv:sha256 cipher (check syslog for
more info).

So I guesss my RHEL6 doesn't have the proper crypto module installed. This
is a dump of /proc/crypto:


bash-4.1# cat /proc/crypto
name         : stdrng
driver       : krng
module       : kernel
priority     : 200
refcnt       : 1
selftest     : passed
type         : rng
seedsize     : 0

name         : crc32c
driver       : crc32c-generic
module       : kernel
priority     : 100
refcnt       : 2
selftest     : passed
type         : shash
blocksize    : 1
digestsize   : 4

name         : sha1
driver       : sha1-generic
module       : kernel
priority     : 0
refcnt       : 1
selftest     : passed
type         : shash
blocksize    : 64
digestsize   : 20

name         : md5
driver       : md5-generic
module       : kernel
priority     : 0
refcnt       : 1
selftest     : passed
type         : shash
blocksize    : 64
digestsize   : 1



But I am not quite sure which package is missing here.  Is it something
more general like "yum install aes"?

In general, how do I check if all the required crypto modules are supported
before running any cryptsetup commands?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.saout.de/pipermail/dm-crypt/attachments/20130118/c1fdf3dd/attachment.html>


More information about the dm-crypt mailing list