函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:TSS_sha1

函数原型:static int TSS_sha1(const unsigned char *data, unsigned int datalen, unsigned char *digest)

返回类型:int

参数:

类型参数名称
const unsigned char *data
unsigned intdatalen
unsigned char *digest
64  sdesc等于init_sdesc(hashalg)
65  如果是错误
66  打印信息("trusted_key: can't alloc %s\n", hash_alg)
67  返回:错误
70  ret等于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
71  kzfree - like kfree but zero memory*@p: object to free memory of* The memory of the object @p points to is zeroed before freed.* If @p is %NULL, kzfree() does nothing.* Note: this function zeroes the whole allocated buffer which can be a good
72  返回:ret
调用者
名称描述
tpm_sealHave the TPM seal(encrypt) the trusted key, possibly based on* Platform Configuration Registers (PCRs). AUTH1 for sealing key.