Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:free_direct_key

Proto:static void free_direct_key(struct fscrypt_direct_key *dk)

Type:void

Parameter:

TypeParameterName
struct fscrypt_direct_key *dk
156  If dk Then
157  rypto_free_skcipher() - zeroize and free cipher handle*@tfm: cipher handle to be freed
158  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_put_direct_key
find_or_insert_direct_keyFind/insert the given key into the fscrypt_direct_keys table. If found, it* is returned with elevated refcount, and 'to_insert' is freed if non-NULL. If* not found, 'to_insert' is inserted and returned if it's non-NULL; otherwise* NULL is returned.
fscrypt_get_direct_keyPrepare to encrypt directly using the master key in the given mode