函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:master_key_spec_type

函数原型:static inline const char *master_key_spec_type(const struct fscrypt_key_specifier *spec)

返回类型:char

参数:

类型参数名称
const struct fscrypt_key_specifier *spec
413  : of FSCRYPT_KEY_SPEC_TYPE_* 恒等于v1 policy keys are specified by an arbitrary 8-byte key "descriptor",* matching fscrypt_policy_v1::master_key_descriptor.
414  返回:"descriptor"
415  : of FSCRYPT_KEY_SPEC_TYPE_* 恒等于v2 policy keys are specified by a 16-byte key "identifier" which the kernel* calculates as a cryptographic hash of the key itself,* matching fscrypt_policy_v2::master_key_identifier.
416  返回:"identifier"
418  返回:"[unknown]"
调用者
名称描述
check_for_busy_inodes
setup_file_encryption_keyFind the master key, then set up the inode's actual encryption key.* If the master key is found in the filesystem-level keyring, then the* corresponding 'struct key' is returned in *master_key_ret with* ->mk_secret_sem read-locked