Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_sdesc

Proto:static struct sdesc *init_sdesc(struct crypto_shash *alg)

Type:struct sdesc

Parameter:

TypeParameterName
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 = Allocation memory
52  If Not sdesc Then Return ERR_PTR( - ENOMEM)
54  tfm = alg
55  Return sdesc
Caller
NameDescribe
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