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

Name:datablob_format - format as an ascii string, before copying to userspace

Proto:static char *datablob_format(struct encrypted_key_payload *epayload, size_t asciiblob_len)

Type:char

Parameter:

TypeParameterName
struct encrypted_key_payload *epayload
size_tasciiblob_len
274  iv = datablob: iv
278  ascii_buf = Allocation memory
279  If Not ascii_buf Then Go to out
282  ascii_buf[asciiblob_len] = '\0'
285  len = sprintf(ascii_buf, "%s %s %s ", datablob: format , datablob: master key name , datablob: decrypted key length )
289  bufp = ascii_buf[len]
290  When i < (asciiblob_len - len) / 2 cycle bufp = hex_byte_pack(bufp, iv[i])
292  out :
293  Return ascii_buf
Caller
NameDescribe
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.