This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
android_-_os:s7edge [2017/01/20 19:09] tkilla |
android_-_os:s7edge [2017/03/21 11:35] tkilla [Crypt home] |
||
---|---|---|---|
Line 32: | Line 32: | ||
Commands to setup crypted partition: | Commands to setup crypted partition: | ||
- | cryptsetup -c aes-xts-plain64 --key-size 512 --hash sha512 -y luksFormat / | + | |
- | cryptsetup | + | |
+ | | ||
+ | cryptsetup | ||
mkfs.ext4 -j -m 1 -O dir_index, | mkfs.ext4 -j -m 1 -O dir_index, | ||
+ | |||
+ | Note: on a old android device i used these settings, because the kernel does not support the cipher above: | ||
+ | |||
+ | cryptsetup luksDump ... | ||
+ | | ||
+ | Cipher name: twofish | ||
+ | Cipher mode: cbc-plain | ||
+ | Hash spec: sha1 | ||
+ | |||
+ | |||
+ | Test: | ||
+ | mount / | ||
+ | # cop< stuff .. | ||
+ | umount /mnt/sd | ||
+ | cryptsetup luksClose / | ||
+ | # retry | ||
Mount the partition in linux bootscript: | Mount the partition in linux bootscript: |