函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\hkdf.c Create Date:2022-07-29 10:57:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:HKDF-Extract (RFC 5869 section 2.2), unsalted

函数原型:static int hkdf_extract(struct crypto_shash *hmac_tfm, const u8 *ikm, unsigned int ikmlen, u8 prk[64])

返回类型:int

参数:

类型参数名称
struct crypto_shash *hmac_tfm
const u8 *ikm
unsigned intikmlen
u8prk
47  SHASH_DESC_ON_STACK(desc, hmac_tfm)
50  err等于rypto_shash_setkey() - set key for message digest*@tfm: cipher handle*@key: buffer holding the key*@keylen: length of the key in bytes* The caller provided key is set for the keyed message digest cipher
51  如果err则返回:err
54  tfm等于hmac_tfm
55  err等于rypto_shash_digest() - calculate message digest for buffer*@desc: see crypto_shash_final()*@data: see crypto_shash_update()*@len: see crypto_shash_update()*@out: see crypto_shash_final()* This function is a "short-hand" for the function calls of
56  shash_desc_zero(desc)
57  返回:err
调用者
名称描述
fscrypt_init_hkdfCompute HKDF-Extract using the given master key as the input keying material,* and prepare an HMAC transform object keyed by the resulting pseudorandom key.* Afterwards, the keyed HMAC transform object can be used for HKDF-Expand many