函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\encrypted-keys\encrypted.c Create Date:2022-07-27 20:06:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static int valid_ecryptfs_desc(const char *ecryptfs_desc)

返回类型:int

参数:

类型参数名称
const char *ecryptfs_desc
108  如果strlen - Find the length of a string*@s: The string to be sized不等于KEY_ECRYPTFS_DESC_LEN
109  打印错误信息("encrypted_key: key description must be %d hexadecimal characters long\n", KEY_ECRYPTFS_DESC_LEN)
111  返回:负EINVAL
114 i小于KEY_ECRYPTFS_DESC_LEN循环
115  如果非是十六进制数字
116  打印错误信息("encrypted_key: key description must contain only hexadecimal characters\n")
118  返回:负EINVAL
122  返回:0
调用者
名称描述
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.