История изменений
Исправление user_id_68054, (текущая версия) :
попробовал повторить:
[regular-user@localhost ~]$ cd ~/Desktop/
[regular-user@localhost Desktop]$ truncate -s 1200M disk.img
[regular-user@localhost Desktop]$ sudo losetup -f ./disk.img
[sudo] password for regular-user:
[regular-user@localhost Desktop]$ sudo losetup
NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE
/dev/loop0 0 0 0 0 /home/regular-user/Desktop/disk.img
[regular-user@localhost Desktop]$ lsblk | grep -Fi loop
loop0 7:0 0 1.2G 0 loop
[regular-user@localhost Desktop]$ sudo cryptsetup luksFormat /dev/loop0 -h=sha256 -c=twofish-xts -s=256
WARNING!
========
This will overwrite data on /dev/loop0 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
[regular-user@localhost Desktop]$ sudo cryptsetup luksDump /dev/loop0
LUKS header information for /dev/loop0
Version: 1
Cipher name: twofish
Cipher mode: xts
Hash spec: sha256
Payload offset: 4096
MK bits: 256
MK digest: 8d ee bc c1 39 e6 d0 cd f8 98 79 72 87 81 57 4a 6c e0 41 5a
MK salt: a7 96 0a 1e b8 6f 84 b7 01 a9 08 d7 45 1c 9f 9a
51 03 92 1b 6e c6 1d 71 8d 3d d3 61 a7 4f f9 f3
MK iterations: 45875
UUID: 3325592b-d050-4cb3-b2da-955ddbc15888
Key Slot 0: ENABLED
Iterations: 184437
Salt: 24 49 02 97 df fa c3 5d ff 0a d1 b2 a5 07 a9 74
1d b5 d6 45 3d 02 7c c7 5b ef 08 1f b5 14 6e 17
Key material offset: 8
AF stripes: 4000
Key Slot 1: DISABLED
Key Slot 2: DISABLED
Key Slot 3: DISABLED
Key Slot 4: DISABLED
Key Slot 5: DISABLED
Key Slot 6: DISABLED
Key Slot 7: DISABLED
[regular-user@localhost Desktop]$
### дополнение: ###
[regular-user@localhost Desktop]$ lsmod | grep twofish
twofish_generic 16569 0
twofish_avx_x86_64 50220 0
twofish_x86_64_3way 25483 1 twofish_avx_x86_64
twofish_x86_64 12541 2 twofish_avx_x86_64,twofish_x86_64_3way
twofish_common 20585 4 twofish_generic,twofish_avx_x86_64,twofish_x86_64_3way,twofish_x86_64
lrw 12757 4 serpent_sse2_x86_64,serpent_avx_x86_64,twofish_avx_x86_64,twofish_x86_64_3way
glue_helper 12649 4 serpent_sse2_x86_64,serpent_avx_x86_64,twofish_avx_x86_64,twofish_x86_64_3way
ablk_helper 12572 3 serpent_sse2_x86_64,serpent_avx_x86_64,twofish_avx_x86_64
xts 12679 4 serpent_sse2_x86_64,twofish_x86_64_3way
[regular-user@localhost Desktop]$
Исходная версия user_id_68054, :
попробовал повторить:
[regular-user@localhost ~]$ cd ~/Desktop/
[regular-user@localhost Desktop]$ truncate -s 1200M disk.img
[regular-user@localhost Desktop]$ sudo losetup -f ./disk.img
[sudo] password for regular-user:
[regular-user@localhost Desktop]$ sudo losetup
NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE
/dev/loop0 0 0 0 0 /home/regular-user/Desktop/disk.img
[regular-user@localhost Desktop]$ lsblk | grep -Fi loop
loop0 7:0 0 1.2G 0 loop
[regular-user@localhost Desktop]$ sudo cryptsetup luksFormat /dev/loop0 -h=sha256 -c=twofish-xts -s=256
WARNING!
========
This will overwrite data on /dev/loop0 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
[regular-user@localhost Desktop]$ sudo cryptsetup luksDump /dev/loop0
LUKS header information for /dev/loop0
Version: 1
Cipher name: twofish
Cipher mode: xts
Hash spec: sha256
Payload offset: 4096
MK bits: 256
MK digest: 8d ee bc c1 39 e6 d0 cd f8 98 79 72 87 81 57 4a 6c e0 41 5a
MK salt: a7 96 0a 1e b8 6f 84 b7 01 a9 08 d7 45 1c 9f 9a
51 03 92 1b 6e c6 1d 71 8d 3d d3 61 a7 4f f9 f3
MK iterations: 45875
UUID: 3325592b-d050-4cb3-b2da-955ddbc15888
Key Slot 0: ENABLED
Iterations: 184437
Salt: 24 49 02 97 df fa c3 5d ff 0a d1 b2 a5 07 a9 74
1d b5 d6 45 3d 02 7c c7 5b ef 08 1f b5 14 6e 17
Key material offset: 8
AF stripes: 4000
Key Slot 1: DISABLED
Key Slot 2: DISABLED
Key Slot 3: DISABLED
Key Slot 4: DISABLED
Key Slot 5: DISABLED
Key Slot 6: DISABLED
Key Slot 7: DISABLED
[regular-user@localhost Desktop]$