Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:format_mk_description

Proto:static void format_mk_description(char description[33], const struct fscrypt_key_specifier *mk_spec)

Type:void

Parameter:

TypeParameterName
chardescription
const struct fscrypt_key_specifier *mk_spec
176  sprintf(description, "%*phN", master_key_spec_len(mk_spec), (u8 * ) & u)
Caller
NameDescribe
fscrypt_find_master_keyFind the specified master key in ->s_master_keys.* Returns ERR_PTR(-ENOKEY) if not found.
add_new_master_keyAllocate a new fscrypt_master_key which contains the given secret, set it as* the payload of a new 'struct key' of type fscrypt, and link the 'struct key'* into the given keyring. Synchronized by fscrypt_add_key_mutex.