函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:free_direct_key

函数原型:static void free_direct_key(struct fscrypt_direct_key *dk)

返回类型:void

参数:

类型参数名称
struct fscrypt_direct_key *dk
156  如果dk
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
调用者
名称描述
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