函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fsverity_check_hash_algs

函数原型:void __init fsverity_check_hash_algs(void)

返回类型:void

参数:

264 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(The hash algorithms supported by fs-verity )循环
265  alg等于The hash algorithms supported by fs-verity [i]
267  如果非crypto API name, e.g. sha256 则继续下一循环
270  BUG_ON(digest size in bytes, e.g. 32 for SHA-256 > Largest digest size among all hash algorithms supported by fs-verity.* Currently assumed to be <= size of fsverity_descriptor::root_hash.)
277  BUG_ON(!s_power_of_2() - check if a value is a power of two*@n: the value to check* Determine whether some value is a power of two, where zero is* *not* considered a power of two.* Return: true if @n is a power of 2, otherwise false.)
278  BUG_ON(!s_power_of_2() - check if a value is a power of two*@n: the value to check* Determine whether some value is a power of two, where zero is* *not* considered a power of two.* Return: true if @n is a power of 2, otherwise false.)
调用者
名称描述
fsverity_init