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_len

Proto:static inline int master_key_spec_len(const struct fscrypt_key_specifier *spec)

Type:int

Parameter:

TypeParameterName
const struct fscrypt_key_specifier *spec
424  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.
425  Return FSCRYPT_KEY_DESCRIPTOR_SIZE
426  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.
427  Return FSCRYPT_KEY_IDENTIFIER_SIZE
429  Return 0
Caller
NameDescribe
valid_key_spec
format_mk_description
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