User Tools

Site Tools


android_-_os:s7edge

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 /dev/mmcblk0p2 +  openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt < /dev/zero > /dev/mmcblk0_foo 
-  cryptsetup luksClose /dev/mapper/sdhome+ 
 +  cryptsetup -c aes-xts-plain64 --key-size 512 --hash sha512 -y luksFormat /dev/mmcblk0p2   
 +  cryptsetup luksOpen /dev/mmcblk0p2 sdhome
   mkfs.ext4 -j -m 1 -O dir_index,filetype -L homecrypt /dev/mapper/sdhome    mkfs.ext4 -j -m 1 -O dir_index,filetype -L homecrypt /dev/mapper/sdhome 
 +
 +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 /dev/mapper/sdhome /mnt/sd/
 +  # cop< stuff ..
 +  umount /mnt/sd
 +  cryptsetup luksClose /dev/mapper/sdhome
 +  # retry
  
 Mount the partition in linux bootscript: Mount the partition in linux bootscript:
android_-_os/s7edge.txt · Last modified: 2017/03/22 12:40 by tkilla