函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cmp_hashes

函数原型:static inline int cmp_hashes(const struct fsverity_info *vi, const u8 *want_hash, const u8 *real_hash, unsigned long index, int level)

返回类型:int

参数:

类型参数名称
const struct fsverity_info *vi
const u8 *want_hash
const u8 *real_hash
unsigned longindex
intlevel
56  hsize等于same as hash_alg->digest_size
58  如果内存比较恒等于0则返回:0
61  fsverity_err(inode, "FILE CORRUPTED! index=%lu, level=%d, want_hash=%s:%*phN, real_hash=%s:%*phN", index, level, crypto API name, e.g. sha256 , hsize, want_hash, crypto API name, e.g. sha256 , hsize, real_hash)
66  返回:负EBADMSG
调用者
名称描述
verify_pageVerify a single data page against the file's Merkle tree