Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_crypto.c Create Date:2022-07-28 19:58:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Calculate the boot aggregate hash

Proto:static int __init ima_calc_boot_aggregate_tfm(char *digest, struct crypto_shash *tfm)

Type:int

Parameter:

TypeParameterName
char *digest
struct crypto_shash *tfm
663  struct tpm_digest d = {alg_id = TPM_ALG_SHA1, digest = {0}}
666  SHASH_DESC_ON_STACK(shash, tfm)
668  tfm = tfm
670  rc = rypto_shash_init() - (re)initialize message digest*@desc: operational state handle that is already filled* The call (re-)initializes the message digest referenced by the* operational state handle. Any potentially existing state created by
671  If rc != 0 Then Return rc
675  When i < TPM_PCR8 cycle
676  ima_pcrread(i, & d)
678  rc = rypto_shash_update() - add data to message digest for processing*@desc: operational state handle that is already initialized*@data: input data to be added to the message digest*@len: length of the input data
680  If Not rc Then rypto_shash_final() - calculate message digest*@desc: operational state handle that is already filled with data*@out: output buffer filled with the message digest* Finalize the message digest operation and create the message digest
682  Return rc
Caller
NameDescribe
ima_calc_boot_aggregate