Menu

#168 Problems with dm_crypt

open
nobody
None
5
2009-12-02
2009-12-02
No

Hello,

Using the latest development snapshot (20091115), I am unable to deal with dm_crypt data. For example (run under the debian-lenny image):

colinux:~# cat /mnt/test.sh
#!/bin/sh
MODULES="sha1 sha256 sha512 cbc ecb aes crypto_blkcipher md5"
for m in $MODULES
do
modprobe $m
done

dd if=/dev/zero bs=1M count=50 of=/tmp/test.bin
LOOP_DEV=$(losetup -fs /tmp/test.bin)
echo $LOOP_DEV
cryptsetup luksFormat $LOOP_DEV

colinux:~# sh /mnt/test.sh
50+0 records in
50+0 records out
52428800 bytes (52 MB) copied, 0.3 s, 175 MB/s
/dev/loop0

WARNING!

This will overwrite data on /dev/loop0 irrevocably.

Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
device-mapper: ioctl: device doesn't appear to be in the dev hash table.
Command failed: Failed to setup dm-crypt key mapping.
Check kernel for support for the aes-cbc-essiv:sha256 cipher spec and verify that /dev/loop0 contains at least 133 secto
rs
colinux:~#

This didn't happen with builds that used the 2.6.22.18 kernel. I have also tried rebuilding colinux so that it includes the seqiv.ko, but it didn't help

Thanks in advance

Discussion