Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fsverity_check_hash_algs

Proto:void __init fsverity_check_hash_algs(void)

Type:void

Parameter:Nothing

264  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(The hash algorithms supported by fs-verity ) cycle
265  alg = The hash algorithms supported by fs-verity [i]
267  If Not crypto API name, e.g. sha256 Then Continue
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.)
Caller
NameDescribe
fsverity_init