MyBook World Edition Encrypted volumes

According to Oxford Semiconductors' specification the chip supports hardware accelerated encryption. Unfortunately Western Digital has removed support for this from their package. There are still some traces of encrypted volumes support (e.g. /etc/hotplug/ I do not completely understand yet how does this work, but I have discovered in less than 10 minutes that it's possible to format/mount partition quite easily.

If you want to prepare encrypted partition /dev/sda4, use these commands

echo 0 `cat /sys/block/sda/sda4/size ` ox-crypt 12345678901234567890123456789012 12345678901234567890123456789012 0 /dev/sda4 0 |/usr/sbin/dmsetup create dmsda4

12345678901234567890123456789012 is key, resp. initialization vector.

Now you can format and mount the partition:

mke2fs -j /dev/mapper/dmsda4 mount /dev/mapper/dmsda4 /share/internal


I do not understand key and iv interpretation. This means that unless you know how does the chip or kernel process aes key and iv, you cannot safely and reliably encrypt any data!