Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\crypto\hash.h Create Date:2022-07-28 05:46:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static inline struct ahash_request *ahash_request_alloc(struct crypto_ahash *tfm, gfp_t gfp)

Type:struct ahash_request

Parameter:

TypeParameterName
struct crypto_ahash *tfm
gfp_tgfp
581  req = Allocation memory
584  If Value is more likely to compile time(req) Then 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  Return req
Caller
NameDescribe
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