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:v1 policy, !DIRECT_KEY: derive the file's encryption key

Proto:static int setup_v1_file_key_derived(struct fscrypt_info *ci, const u8 *raw_master_key)

Type:int

Parameter:

TypeParameterName
struct fscrypt_info *ci
const u8 *raw_master_key
292  derived_key = Allocation memory
293  If Not derived_key Then Return -ENOMEM
296  err = v1 key derivation function
298  If err Then Go to 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  Return err
Caller
NameDescribe
fscrypt_setup_v1_file_key