Comment 29 for bug 779912

Revision history for this message
Ilya A. Potapov (ilya-a-potapov) wrote :

Same issue for me. I am using 2.6.38-11-generic and /home and swap encryption.

I see
modprobe: FATAL: Error inserting padlock_sha (/lib/modules/2.6.38-11-generic/kernel/drivers/crypto/padlock-sha.ko): No such device
during boot up.

I just updated yesterday and then added "hash=ripemd160,size=256" to /etc/crypttab:

# cat /etc/crypttab
# <target name> <source device> <key file> <options>
cryptswap1 /dev/sda3 /dev/urandom swap,cipher=aes-cbc-essiv:sha256,hash=ripemd160,size=256
#EOF

I did it because in output of apt-get i notice, that hash and size should be specified for cryptsetup to work properly.
It seems that swap is encrypted and works properly:

# cryptsetup status cryptswap1
/dev/mapper/cryptswap1 is active and is in use.
  type: PLAIN
  cipher: aes-cbc-essiv:sha256
  keysize: 256 bits
  device: /dev/sda3
  offset: 0 sectors
  size: 6297480 sectors
  mode: read/write

# free -m
             total used free shared buffers cached
Mem: 2004 1886 117 0 78 905
-/+ buffers/cache: 902 1101
Swap: 3074 51 3023