Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\crypto.c Create Date:2022-07-28 19:55:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:init_profile_hash

Proto:static int __init init_profile_hash(void)

Type:int

Parameter:Nothing

106  If Not Flag indicating whether initialization completed Then Return 0
109  tfm = crypto_alloc_shash("sha1", 0, 0)
110  If IS_ERR(tfm) Then
111  error = PTR_ERR(tfm)
112  AA_ERROR("failed to setup profile sha1 hashing: %d\n", error)
113  Return error
115  apparmor_tfm = tfm
116  apparmor_hash_size = rypto_shash_digestsize() - obtain message digest size*@tfm: cipher handle* The size for the message digest created by the message digest cipher* referenced with the cipher handle is returned.* Return: digest size of cipher
118  aa_info_message - log a none profile related status message*@str: message to log
120  Return 0