Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\verity\open.c Create Date:2022-07-28 20:24:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Compute the file measurement by hashing the fsverity_descriptor excluding the* signature and with the sig_size field set to 0.

Proto:static int compute_file_measurement(const struct fsverity_hash_alg *hash_alg, struct fsverity_descriptor *desc, u8 *measurement)

Type:int

Parameter:

TypeParameterName
const struct fsverity_hash_alg *hash_alg
struct fsverity_descriptor *desc
u8 *measurement
133  sig_size = size of signature in bytes; 0 if none
136  size of signature in bytes; 0 if none = 0
137  err = sverity_hash_buffer() - hash some data*@alg: the hash algorithm to use*@data: the data to hash*@size: size of data to hash, in bytes*@out: output digest, size 'alg->digest_size' bytes* Hash some data which is located in physically contiguous memory (i
138  size of signature in bytes; 0 if none = sig_size
140  Return err
Caller
NameDescribe
fsverity_create_infoValidate the given fsverity_descriptor and create a new fsverity_info from* it. The signature (if present) is also checked.