函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:datablob_format - format as an ascii string, before copying to userspace

函数原型:static char *datablob_format(struct encrypted_key_payload *epayload, size_t asciiblob_len)

返回类型:char

参数:

类型参数名称
struct encrypted_key_payload *epayload
size_tasciiblob_len
274  iv等于 datablob: iv
278  ascii_buf等于开辟内存
279  如果非ascii_buf则转到:out
282  ascii_buf[asciiblob_len]等于'\0'
285  len等于输出格式化串
289  bufp等于ascii_buf[len]
290 i小于asciiblob_lenlen的差除2循环bufp等于hex_byte_pack(bufp, iv[i])
292  out :
293  返回:ascii_buf
调用者
名称描述
encrypted_readrypted_read - format and copy the encrypted data to userspace* The resulting datablob format is:* * On success, return to userspace the encrypted key datablob size.