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

Name:valid_ecryptfs_desc - verify the description of a new/loaded encrypted key* The description of a encrypted key with format 'ecryptfs' must contain* exactly 16 hexadecimal characters.

Proto:static int valid_ecryptfs_desc(const char *ecryptfs_desc)

Type:int

Parameter:

TypeParameterName
const char *ecryptfs_desc
108  If strlen - Find the length of a string*@s: The string to be sized != KEY_ECRYPTFS_DESC_LEN Then
109  pr_err("encrypted_key: key description must be %d hexadecimal characters long\n", KEY_ECRYPTFS_DESC_LEN)
111  Return -EINVAL
114  When i < KEY_ECRYPTFS_DESC_LEN cycle
115  If Not isxdigit(ecryptfs_desc[i]) Then
116  pr_err("encrypted_key: key description must contain only hexadecimal characters\n")
118  Return -EINVAL
122  Return 0
Caller
NameDescribe
encrypted_initrypted_init - initialize an encrypted key* For a new key, use a random number for both the iv and data* itself. For an old key, decrypt the hex encoded data.