Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\encrypted-keys\encrypted.c Create Date:2022-07-28 18:33:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:calc_hash

Proto:static int calc_hash(struct crypto_shash *tfm, u8 *digest, const u8 *buf, unsigned int buflen)

Type:int

Parameter:

TypeParameterName
struct crypto_shash *tfm
u8 *digest
const u8 *buf
unsigned intbuflen
329  SHASH_DESC_ON_STACK(desc, tfm)
332  tfm = tfm
334  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
335  shash_desc_zero(desc)
336  Return err
Caller
NameDescribe
calc_hmac
get_derived_keyDerive authentication/encryption key from trusted key