Searched refs:ascii_buf (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/security/keys/encrypted-keys/ |
D | encrypted.c | 272 char *ascii_buf, *bufp; in datablob_format() local 277 ascii_buf = kmalloc(asciiblob_len + 1, GFP_KERNEL); in datablob_format() 278 if (!ascii_buf) in datablob_format() 281 ascii_buf[asciiblob_len] = '\0'; in datablob_format() 284 len = sprintf(ascii_buf, "%s %s %s ", epayload->format, in datablob_format() 288 bufp = &ascii_buf[len]; in datablob_format() 292 return ascii_buf; in datablob_format() 913 char *ascii_buf; in encrypted_read() local 943 ascii_buf = datablob_format(epayload, asciiblob_len); in encrypted_read() 944 if (!ascii_buf) { in encrypted_read() [all …]
|
/Linux-v4.19/security/keys/ |
D | trusted.c | 1142 char *ascii_buf; in trusted_read() local 1151 ascii_buf = kmalloc_array(2, p->blob_len, GFP_KERNEL); in trusted_read() 1152 if (!ascii_buf) in trusted_read() 1155 bufp = ascii_buf; in trusted_read() 1158 if (copy_to_user(buffer, ascii_buf, 2 * p->blob_len) != 0) { in trusted_read() 1159 kzfree(ascii_buf); in trusted_read() 1162 kzfree(ascii_buf); in trusted_read()
|