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:free_master_key

Proto:static void free_master_key(struct fscrypt_master_key *mk)

Type:void

Parameter:

TypeParameterName
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  When i <= __FSCRYPT_MODE_MAX cycle
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
Caller
NameDescribe
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.