lkml.org 
[lkml]   [2017]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] KEYS: encrypted: avoid encrypting/decrypting stack buffers
On Mon, Apr 03, 2017 at 11:55:42AM -0400, Mimi Zohar wrote:
>
> This patch removes calculating the "padlen".  Will this change break
> other use cases?
>

No, the number of bytes being encrypted is still 'encrypted_datalen' which is
passed to skcipher_request_set_crypt(). It's okay if the input scatterlist is
longer than that; only the first 'encrypted_datalen' bytes will be used.

- Eric

\
 
 \ /
  Last update: 2017-04-03 20:22    [W:0.137 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site