函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\crypto\hash.h Create Date:2022-07-27 06:47:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ahash_request_alloc() - allocate request data structure*@tfm: cipher handle to be registered with the request*@gfp: memory allocation flag that is handed to kmalloc by the API call.* Allocate the request data structure that must be used with the ahash

函数原型:static inline struct ahash_request *ahash_request_alloc(struct crypto_ahash *tfm, gfp_t gfp)

返回类型:struct ahash_request

参数:

类型参数名称
struct crypto_ahash *tfm
gfp_tgfp
581  req等于开辟内存
584  如果此条件成立可能性大(为编译器优化)(req)则ahash_request_set_tfm() - update cipher handle reference in request*@req: request handle to be modified*@tfm: cipher handle that shall be added to the request handle* Allow the caller to replace the existing ahash handle in the request
587  返回:req
调用者
名称描述
ima_calc_file_hash_atfm
calc_buffer_ahash_atfm
build_merkle_treeBuild the Merkle tree for the given inode using the given parameters, and* return the root hash in @root_hash.* The tree is written to a filesystem-specific location as determined by the* ->write_merkle_tree_block() method
fsverity_prepare_hash_statesverity_prepare_hash_state() - precompute the initial hash state*@alg: hash algorithm*@salt: a salt which is to be prepended to all data to be hashed*@salt_size: salt size in bytes, possibly 0* Return: NULL if the salt is empty, otherwise the kmalloc()'ed
fsverity_hash_buffersverity_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
fsverity_verify_pagesverity_verify_page() - verify a data page* Verify a page that has just been read from a verity file. The page must be a* pagecache page that is still locked and not yet uptodate.* Return: true if the page is valid, else false.
fsverity_verify_biosverity_verify_bio() - verify a 'read' bio that has just completed* Verify a set of pages that have just been read from a verity file. The pages* must be pagecache pages that are still locked and not yet uptodate. Pages