use*_*ser 12 partition encryption luks cryptsetup
什么命令可用于确定 LUKS 分区上使用的加密(所有相关信息、初始化向量、生成方案、操作模式和分组密码原语)?
Hau*_*ing 16
如果解密的卷是/dev/mapper/crypto那么你可以得到信息
dmsetup table crypto
0 104853504 crypt aes-cbc-essiv:sha256 000[...]000 0 254:2 4096
Run Code Online (Sandbox Code Playgroud)
如果加密卷是/dev/storage2/crypto那么你得到的信息
cryptsetup luksDump /dev/storage2/crypto
LUKS header information for /dev/storage2/crypto
Version: 1
Cipher name: aes
Cipher mode: cbc-essiv:sha256
Hash spec: sha256
[...]
Run Code Online (Sandbox Code Playgroud)
列出磁盘:
lsblk --fs
Run Code Online (Sandbox Code Playgroud)
然后(使用加密):
cryptsetup luksDump /dev/sdb1
Run Code Online (Sandbox Code Playgroud)
或(使用加密):
cryptsetup status crypt_sdb1
Run Code Online (Sandbox Code Playgroud)
此外(内核支持加密和工作台):
cat /proc/crypto
ls /lib/modules/$(uname -r)/kernel/crypto/
#cryptsetup benchmark --cipher aes-xts --key-size 256
cryptsetup benchmark
Run Code Online (Sandbox Code Playgroud)