The 'encrypted' key type defines its own payload format which contains a
symmetric key randomly generated that cannot be used directly to mount
an eCryptfs filesystem, because it expects an authentication token
This patch introduces the new format 'ecryptfs' that allows to store an
authentication token structure inside the encrypted key payload containing
a randomly generated symmetric key, as the same for the format 'default'.
More details about the usage of encrypted keys with the eCryptfs
filesystem can be found in the file 'Documentation/keys-ecryptfs.txt'.
Signed-off-by: Roberto Sassu <email@example.com>
Acked-by: Gianluca Ramunno <firstname.lastname@example.org>
Acked-by: Tyler Hicks <email@example.com>
Signed-off-by: Mimi Zohar <firstname.lastname@example.org>