函数逻辑报告

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_len

函数原型:static inline int master_key_spec_len(const struct fscrypt_key_specifier *spec)

返回类型:int

参数:

类型参数名称
const struct fscrypt_key_specifier *spec
424  : 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  返回:FSCRYPT_KEY_DESCRIPTOR_SIZE
426  : 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  返回:FSCRYPT_KEY_IDENTIFIER_SIZE
429  返回:0
调用者
名称描述
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