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:31:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:trusted_shash_alloc

Proto:static int __init trusted_shash_alloc(void)

Type:int

Parameter:Nothing

1193  hmacalg = crypto_alloc_shash(hmac_alg, 0, 0)
1194  If IS_ERR(hmacalg) Then
1195  pr_info("trusted_key: could not allocate crypto %s\n", hmac_alg)
1197  Return PTR_ERR(hmacalg)
1200  hashalg = crypto_alloc_shash(hash_alg, 0, 0)
1201  If IS_ERR(hashalg) Then
1202  pr_info("trusted_key: could not allocate crypto %s\n", hash_alg)
1204  ret = PTR_ERR(hashalg)
1205  Go to hashalg_fail
1208  Return 0
1210  hashalg_fail :
1211  rypto_free_shash() - zeroize and free the message digest handle*@tfm: cipher handle to be freed
1212  Return ret
Caller
NameDescribe
init_trusted