函数逻辑报告

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

函数名称:rypto_ahash_init() - (re)initialize message digest handle*@req: ahash_request handle that already is initialized with all necessary* data using the ahash_request_* API functions* The call (re-)initializes the message digest referenced by the ahash_request

函数原型:static inline int crypto_ahash_init(struct ahash_request *req)

返回类型:int

参数:

类型参数名称
struct ahash_request *req
507  tfm等于rypto_ahash_reqtfm() - obtain cipher handle from request*@req: asynchronous request handle that contains the reference to the ahash* cipher handle* Return the ahash cipher handle that is registered with the asynchronous* request handle ahash_request
509  如果crypto_ahash_get_flags(tfm)按位与Transform masks and values (for crt_flags).则返回:负ENOKEY
512  返回:init(req)
调用者
名称描述
ima_calc_file_hash_atfm
calc_buffer_ahash_atfm
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