On 01/05/2018 10:36 AM, Ondrej Kozina wrote:
On 01/05/2018 10:09 AM, Lukáš Pohanka wrote:
Or, you can simply use cryptsetup for it. It'll be more user-friendly and do the device size calculations for you:
cryptsetup open --type plain --offset 1 --cipher aes-xts-plain64 /dev/sdb1 my_crypt_device
Also depending what your use case is, i'd look for cryptsetup --skip option (aka IV offset).
in raw dm table, the IV offset position is right behind the key. Hope it helped O. _______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt