函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\verity\open.c Create Date:2022-07-29 10:58:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Compute the file measurement by hashing the fsverity_descriptor excluding the* signature and with the sig_size field set to 0.

函数原型:static int compute_file_measurement(const struct fsverity_hash_alg *hash_alg, struct fsverity_descriptor *desc, u8 *measurement)

返回类型:int

参数:

类型参数名称
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  返回:err
调用者
名称描述
fsverity_create_infoValidate the given fsverity_descriptor and create a new fsverity_info from* it. The signature (if present) is also checked.