Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 5406  / 2 Years ago, sat, july 2, 2022, 7:45:07

When encrypting a user's home directory, either during the install procedure or later using ecryptfs-migrate-home, what encryption algorithm / key size is used by default?


More From » encryption

 Answers
5

The above answer is right, that AES is the cipher, but the reasoning is wrong.



User's home directories are configured by the script ecryptfs-setup-private.



In that shell script, the cipher and key length are harcoded:



CIPHER="aes" 
KEYBYTES="16"


Likewise, in the C source code of the setuid mount helper, mount.ecryptfs_private, it is also hardcoded:



#define KEY_BYTES 16    
#define KEY_CIPHER "aes"


These values were hard coded to minimize the support burden of helping millions of users encrypt their home directories.


[#41032] Sunday, July 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
zombieptu

Total Points: 490
Total Questions: 121
Total Answers: 108

Location: Nepal
Member since Mon, Jan 4, 2021
3 Years ago
;