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:ima_calc_field_array_hash

Proto:int ima_calc_field_array_hash(struct ima_field_data *field_data, struct ima_template_desc *desc, int num_fields, struct ima_digest_data *hash)

Type:int

Parameter:

TypeParameterName
struct ima_field_data *field_data
struct ima_template_desc *desc
intnum_fields
struct ima_digest_data *hash
519  tfm = ima_alloc_tfm(algo)
520  If IS_ERR(tfm) Then Return PTR_ERR(tfm)
523  rc = Calculate the hash of template data
526  ima_free_tfm(tfm)
528  Return rc
Caller
NameDescribe
ima_store_templatema_store_template - store ima template measurements* Calculate the hash of a template entry, add the template entry* to an ordered list of measurement entries maintained inside the kernel,* and also update the aggregate integrity value (maintained inside