“加密主目录”使用哪种算法?


Answers:


6

上面的答案是正确的,即AES是密码,但是推理是错误的。

用户的主目录由脚本ecryptfs-setup-private配置

在该shell脚本中,密码和密钥长度被编码:

CIPHER="aes" 
KEYBYTES="16"

同样,在setuid安装帮助器的C源代码mount.ecryptfs_private中,它也被硬编码:

#define KEY_BYTES 16    
#define KEY_CIPHER "aes"

这些值经过硬编码,以最大程度地减少帮助数百万用户加密其主目录的支持负担。


9

默认ecryptfs算法是aes

它可以在创建新的文件夹加密加密安装点的过程中显示,该安装点目前仅加载aesecryptfs支持其他对数。

bruno@ubuvbox:~$ sudo mount -t ecryptfs secret/ ~/secret/
Passphrase: 
Select cipher: 
 1) aes: blocksize = 16; min keysize = 16; max keysize = 32 (loaded)
 2) blowfish: blocksize = 16; min keysize = 16; max keysize = 56 (not loaded)
 3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24 (not loaded)
 4) cast6: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
 5) cast5: blocksize = 8; min keysize = 5; max keysize = 16 (not loaded)
Selection [aes]: 

默认选择的密码在之间[]


我以为AES的最小密钥大小是128?为什么这么弱?
拉齐克

3
@Razick根据对该问题的另一个答案,我假设16表示密钥大小(以字节为单位),即16 * 8 = 128
伊恩·伦顿
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.