Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:master_key_spec_type

Proto:static inline const char *master_key_spec_type(const struct fscrypt_key_specifier *spec)

Type:char

Parameter:

TypeParameterName
const struct fscrypt_key_specifier *spec
413  Case 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  Return "descriptor"
415  Case 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  Return "identifier"
418  Return "[unknown]"
Caller
NameDescribe
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