函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:v1 policy, !DIRECT_KEY: derive the file's encryption key

函数原型:static int setup_v1_file_key_derived(struct fscrypt_info *ci, const u8 *raw_master_key)

返回类型:int

参数:

类型参数名称
struct fscrypt_info *ci
const u8 *raw_master_key
292  derived_key等于开辟内存
293  如果非derived_key则返回:负ENOMEM
296  err等于v1 key derivation function
298  如果err则转到:out
301  err等于Given the per-file key, set up the file's crypto transform object
302  out :
303  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
304  返回:err
调用者
名称描述
fscrypt_setup_v1_file_key