函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:free_master_key

函数原型:static void free_master_key(struct fscrypt_master_key *mk)

返回类型:void

参数:

类型参数名称
struct fscrypt_master_key *mk
44  wipe_master_key_secret( & The secret key material. After FS_IOC_REMOVE_ENCRYPTION_KEY is* executed, this is wiped and no new inodes can be unlocked with this* key; however, there may still be inodes in ->mk_decrypted_inodes* which could not be evicted)
46 i小于等于__FSCRYPT_MODE_MAX循环
47  rypto_free_skcipher() - zeroize and free cipher handle*@tfm: cipher handle to be freed
48  rypto_free_skcipher() - zeroize and free cipher handle*@tfm: cipher handle to be freed
51  key_put(Keyring which contains a key of type 'key_type_fscrypt_user' for each* user who has added this key)
52  kzfree - like kfree but zero memory*@p: object to free memory of* The memory of the object @p points to is zeroed before freed.* If @p is %NULL, kzfree() does nothing.* Note: this function zeroes the whole allocated buffer which can be a good
调用者
名称描述
fscrypt_key_destroy
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.