函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_sdesc

函数原型:static struct sdesc *init_sdesc(struct crypto_shash *alg)

返回类型:struct sdesc

参数:

类型参数名称
struct crypto_shash *alg
50  size等于sizeof(structshash_desc)加rypto_shash_descsize() - obtain the operational state size*@tfm: cipher handle* The size of the operational state the cipher needs during operation is* returned for the hash referenced with the cipher handle
51  sdesc等于开辟内存
52  如果非sdesc则返回:错误号
54  tfm等于alg
55  返回:sdesc
调用者
名称描述
TSS_sha1
TSS_rawhmac
TSS_authhmacalculate authorization info fields to send to TPM
TSS_checkhmac1verify the AUTH1_COMMAND (Seal) result from TPM
TSS_checkhmac2verify the AUTH2_COMMAND (unseal) result from TPM