Commit 02473119 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Torvalds

security: follow rename pack_hex_byte() to hex_byte_pack()

There is no functional change.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Mimi Zohar <zohar@us.ibm.com>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 50e1499f
...@@ -293,7 +293,7 @@ static char *datablob_format(struct encrypted_key_payload *epayload, ...@@ -293,7 +293,7 @@ static char *datablob_format(struct encrypted_key_payload *epayload,
/* convert the hex encoded iv, encrypted-data and HMAC to ascii */ /* convert the hex encoded iv, encrypted-data and HMAC to ascii */
bufp = &ascii_buf[len]; bufp = &ascii_buf[len];
for (i = 0; i < (asciiblob_len - len) / 2; i++) for (i = 0; i < (asciiblob_len - len) / 2; i++)
bufp = pack_hex_byte(bufp, iv[i]); bufp = hex_byte_pack(bufp, iv[i]);
out: out:
return ascii_buf; return ascii_buf;
} }
......
...@@ -1098,7 +1098,7 @@ static long trusted_read(const struct key *key, char __user *buffer, ...@@ -1098,7 +1098,7 @@ static long trusted_read(const struct key *key, char __user *buffer,
bufp = ascii_buf; bufp = ascii_buf;
for (i = 0; i < p->blob_len; i++) for (i = 0; i < p->blob_len; i++)
bufp = pack_hex_byte(bufp, p->blob[i]); bufp = hex_byte_pack(bufp, p->blob[i]);
if ((copy_to_user(buffer, ascii_buf, 2 * p->blob_len)) != 0) { if ((copy_to_user(buffer, ascii_buf, 2 * p->blob_len)) != 0) {
kfree(ascii_buf); kfree(ascii_buf);
return -EFAULT; return -EFAULT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment