Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\keysetup.c Create Date:2022-07-28 20:24:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Given the per-file key, set up the file's crypto transform object

Proto:int fscrypt_set_derived_key(struct fscrypt_info *ci, const u8 *derived_key)

Type:int

Parameter:

TypeParameterName
struct fscrypt_info *ci
const u8 *derived_key
112  tfm = Create a symmetric cipher object for the given encryption mode and key
113  If IS_ERR(tfm) Then Return PTR_ERR(tfm)
116  The actual crypto transform used for encryption and decryption = tfm
117  True if the key should be freed when this fscrypt_info is freed = true
118  Return 0
Caller
NameDescribe
fscrypt_setup_v2_file_key
setup_v1_file_key_derivedv1 policy, !DIRECT_KEY: derive the file's encryption key