You are not logged in.

#1 2014-04-12 05:55:27

zARVtFlVGGRFKhmKfTZP
Member
Registered: 2014-04-12
Posts: 1

Converting cryptsetup command to crypttab config

What I want in my crypttab:-

cryptsetup open --hash sha512 --cipher aes-xts-plain64 --key-size 512 --offset 0 --key-file /mnt/ssd/hddkeys/sdc.key --keyfile-offset 0 --type plain /dev/sdc btrfs_raid_enc_1

Hashes to:-
FieSUUC.png

What I have in my crypttab:-

btrfs_raid_enc_1 /dev/sdc /mnt/ssd/hddkeys/sdc.key cipher=aes-xts-plain64,hash=sha512,keyfile-offset=0,plain,size=512

Hashes to:-
CC2jHGJ.png

What I assume my crypttab resolves to:-

cryptsetup open --hash sha512 --cipher aes-xts-plain64 --key-file /mnt/ssd/hddkeys/sdc.key --keyfile-offset 0 --type plain /dev/sdc btrfs_raid_enc_1

Hashes to:-
oqUdvVB.png

All three hashes are calculated using:-

dd if=/dev/mapper/btrfs_raid_enc_1 bs=1M count=1 | md5sum

I honestly can't work out how to get the cryptsetup command (First one, which, works fine) into a crypttab config line.

EDIT:- I gave up, and, just used LUKS, despite it requiring me to backup a huge 2MB file. I don't really need an answer anymore, but, it'd be interesting for future knowledge if someone does know the answer.

Last edited by zARVtFlVGGRFKhmKfTZP (2014-04-12 19:41:28)

Offline

Board footer

Powered by FluxBB