[dm-crypt] Block size and tweak value

jonetsu jonetsu at teksavvy.com
Fri Jun 10 17:02:52 CEST 2016

I would like to determine the block size that's used with aes-xts-plain64 as well as the tweak value. The file system is ext2 and the information returned by parted is:

Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/luksvg-confd: 21.0MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0.00B  21.0MB  21.0MB  ext2

The command used is:

  cat /root/cryptkey | cryptsetup luksFormat /var/lib/luksfile --key-file - --cipher aes-xts-plain64 \
  --key-size 256 --hash sha512 -i 5000 --align-payload 2048

How can the value of the block size and the tweak value ne known ?


More information about the dm-crypt mailing list