Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:TSS_sha1

Proto:static int TSS_sha1(const unsigned char *data, unsigned int datalen, unsigned char *digest)

Type:int

Parameter:

TypeParameterName
const unsigned char *data
unsigned intdatalen
unsigned char *digest
64  sdesc = init_sdesc(hashalg)
65  If IS_ERR(sdesc) Then
66  pr_info("trusted_key: can't alloc %s\n", hash_alg)
67  Return PTR_ERR(sdesc)
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  Return ret
Caller
NameDescribe
tpm_sealHave the TPM seal(encrypt) the trusted key, possibly based on* Platform Configuration Registers (PCRs). AUTH1 for sealing key.