Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_crypto.c Create Date:2022-07-28 19:58:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ima_init_crypto

Proto:int __init ima_init_crypto(void)

Type:int

Parameter:Nothing

66  ima_shash_tfm = crypto_alloc_shash(hash_algo_name[ima_hash_algo], 0, 0)
67  If IS_ERR(ima_shash_tfm) Then
68  rc = PTR_ERR(ima_shash_tfm)
69  pr_err("Can not allocate %s (reason: %ld)\n", hash_algo_name[ima_hash_algo], rc)
71  Return rc
73  pr_info("Allocated hash algorithm: %s\n", hash_algo_name[ima_hash_algo])
75  Return 0