Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\encrypted-keys\encrypted.c Create Date:2022-07-28 18:33:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:datablob_hmac_append

Proto:static int datablob_hmac_append(struct encrypted_key_payload *epayload, const u8 *master_key, size_t master_keylen)

Type:int

Parameter:

TypeParameterName
struct encrypted_key_payload *epayload
const u8 *master_key
size_tmaster_keylen
507  ret = Derive authentication/encryption key from trusted key
508  If ret < 0 Then Go to out
511  digest = datablob: format + length of datablob
512  ret = calc_hmac(digest, derived_key, sizeofderived_key, datablob: format , length of datablob )
514  If Not ret Then dump_hmac(NULL, digest, HASH_SIZE)
516  out :
517  memzero_explicit - Fill a region of memory (e
518  Return ret
Caller
NameDescribe
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.