函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\keysetup_v1.c Create Date:2022-07-29 10:57:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:v1 policy, DIRECT_KEY: use the master key directly

函数原型:static int setup_v1_file_key_direct(struct fscrypt_info *ci, const u8 *raw_master_key)

返回类型:int

参数:

类型参数名称
struct fscrypt_info *ci
const u8 *raw_master_key
256  mode等于Encryption mode used for this inode. It corresponds to either the* contents or filenames encryption mode, depending on the inode type.
259  如果非fscrypt_mode_supports_direct_key(mode)则
260  fscrypt_warn(Back-pointer to the inode , "Direct key mode not allowed with %s", friendly_name)
263  返回:负EINVAL
266  如果contents_encryption_mode不等于filenames_encryption_mode
268  fscrypt_warn(Back-pointer to the inode , "Direct key mode not allowed with different contents and filenames modes")
270  返回:负EINVAL
273  dk等于Prepare to encrypt directly using the master key in the given mode
274  如果是错误则返回:错误
276  If non-NULL, then encryption is done using the master key directly* and ci_ctfm will equal ci_direct_key->dk_ctfm.等于dk
277  The actual crypto transform used for encryption and decryption 等于dk_ctfm
278  返回:0
调用者
名称描述
fscrypt_setup_v1_file_key