函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:verify HMAC before decrypting encrypted key

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

返回类型:int

参数:

类型参数名称
struct encrypted_key_payload *epayload
const u8 *format
const u8 *master_key
size_tmaster_keylen
532  ret等于Derive authentication/encryption key from trusted key
533  如果ret小于0则转到:out
536  len等于 length of datablob
537  如果非format
538  p等于 datablob: master key name
539  len减等于strlen - Find the length of a string*@s: The string to be sized加1
540  否则p等于 datablob: format
543  ret等于calc_hmac(digest, derived_key, sizeofderived_key, p, len)
544  如果ret小于0则转到:out
546  ret等于rypto_memneq - Compare two areas of memory without leaking* timing information.*@a: One area of memory*@b: Another area of memory*@size: The size of the area.* Returns 0 when data is equal, 1 otherwise.
548  如果ret
549  ret等于负EINVAL
550  dump_hmac("datablob", datablob: format + length of datablob , HASH_SIZE)
553  dump_hmac("calc", digest, HASH_SIZE)
555  out :
556  memzero_explicit - Fill a region of memory (e
557  返回:ret
调用者
名称描述
encrypted_key_decrypt