Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_encrypted

Proto:static int __init init_encrypted(void)

Type:int

Parameter:Nothing

994  hash_tfm = crypto_alloc_shash(hash_alg, 0, 0)
995  If IS_ERR(hash_tfm) Then
996  pr_err("encrypted_key: can't allocate %s transform: %ld\n", hash_alg, PTR_ERR(hash_tfm))
998  Return PTR_ERR(hash_tfm)
1001  ret = aes_get_sizes()
1002  If ret < 0 Then Go to out
1004  ret = gister_key_type - Register a type of key.*@ktype: The new key type.* Register a new key type.* Returns 0 on success or -EEXIST if a type of this name already exists.
1005  If ret < 0 Then Go to out
1007  Return 0
1008  out :
1009  rypto_free_shash() - zeroize and free the message digest handle*@tfm: cipher handle to be freed
1010  Return ret