Ubuntu: Reduce the encrypted swap key size
eCryptfs uses AES-128. There is little point in using AES-256 for the swap.
parent
c1c05d4cb4
commit
f5bc7017e4
|
@ -351,7 +351,7 @@ Choose one of the following options. If you are going to do an encrypted home d
|
|||
7.2b Create an encrypted swap device:
|
||||
|
||||
# echo cryptswap1 /dev/zvol/rpool/swap /dev/urandom \
|
||||
swap,cipher=aes-xts-plain64:sha256,size=512 >> /etc/crypttab
|
||||
swap,cipher=aes-xts-plain64:sha256,size=256 >> /etc/crypttab
|
||||
# systemctl daemon-reload
|
||||
# systemctl start systemd-cryptsetup@cryptswap1.service
|
||||
# echo /dev/mapper/cryptswap1 none swap defaults 0 0 >> /etc/fstab
|
||||
|
|
|
@ -353,7 +353,7 @@ Choose one of the following options. If you are going to do an encrypted home d
|
|||
7.2b Create an encrypted swap device:
|
||||
|
||||
# echo cryptswap1 /dev/zvol/rpool/swap /dev/urandom \
|
||||
swap,cipher=aes-xts-plain64:sha256,size=512 >> /etc/crypttab
|
||||
swap,cipher=aes-xts-plain64:sha256,size=256 >> /etc/crypttab
|
||||
# systemctl daemon-reload
|
||||
# systemctl start systemd-cryptsetup@cryptswap1.service
|
||||
# echo /dev/mapper/cryptswap1 none swap defaults 0 0 >> /etc/fstab
|
||||
|
|
Loading…
Reference in New Issue