函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\encrypted-keys\encrypted.c Create Date:2022-07-27 20:07:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:datablob_hmac_append

函数原型:static int datablob_hmac_append(struct encrypted_key_payload *epayload, const u8 *master_key, size_t master_keylen)

返回类型:int

参数:

类型参数名称
struct encrypted_key_payload *epayload
const u8 *master_key
size_tmaster_keylen
507  ret等于Derive authentication/encryption key from trusted key
508  如果ret小于0则转到:out
511  digest等于 datablob: format length of datablob
512  ret等于calc_hmac(digest, derived_key, sizeofderived_key, datablob: format , length of datablob )
514  如果非retdump_hmac(NULL, digest, HASH_SIZE)
516  out :
517  memzero_explicit - Fill a region of memory (e
518  返回:ret
调用者
名称描述
encrypted_readrypted_read - format and copy the encrypted data to userspace* The resulting datablob format is:* * On success, return to userspace the encrypted key datablob size.