函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\dh.c Create Date:2022-07-27 20:01:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kdf_alloc

函数原型:static int kdf_alloc(struct kdf_sdesc **sdesc_ret, char *hashname)

返回类型:int

参数:

类型参数名称
struct kdf_sdesc **sdesc_ret
char *hashname
95  tfm等于crypto_alloc_shash(hashname, 0, 0)
96  如果是错误
97  打印信息("could not allocate digest TFM handle %s\n", hashname)
98  返回:错误
101  err等于负EINVAL
102  如果获得消息文摘大小恒等于0则转到:out_free_tfm
105  err等于负ENOMEM
106  size等于sizeof(structshash_desc)加rypto_shash_descsize() - obtain the operational state size*@tfm: cipher handle* The size of the operational state the cipher needs during operation is* returned for the hash referenced with the cipher handle
107  sdesc等于开辟内存
108  如果非sdesc则转到:out_free_tfm
110  tfm等于tfm
112  sdesc_ret等于sdesc
114  返回:0
116  out_free_tfm :
117  归零并释放信息消化处理
118  返回:err
调用者
名称描述
__keyctl_dh_compute