Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1615462

Re: [PATCH] KEYS: encrypted: avoid encrypting/decrypting stack buffers

From Eric Biggers <ebiggers3@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] KEYS: encrypted: avoid encrypting/decrypting stack buffers
Date 2017-04-03 20:30 +0200
Message-ID <tseTM-21p-15@gated-at.bofh.it> (permalink)
References <trwJ4-6SN-11@gated-at.bofh.it> <trDrc-2K1-3@gated-at.bofh.it> <trEwV-3oY-3@gated-at.bofh.it> <tscyC-nv-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] KEYS: encrypted: avoid encrypting/decrypting stack buffers Eric Biggers <ebiggers3@gmail.com> - 2017-04-01 21:20 +0200
  Re: [PATCH] KEYS: encrypted: avoid encrypting/decrypting stack  buffers Mimi Zohar <zohar@linux.vnet.ibm.com> - 2017-04-02 04:30 +0200
    Re: [PATCH] KEYS: encrypted: avoid encrypting/decrypting stack  buffers Eric Biggers <ebiggers3@gmail.com> - 2017-04-02 05:40 +0200
      Re: [PATCH] KEYS: encrypted: avoid encrypting/decrypting stack  buffers Mimi Zohar <zohar@linux.vnet.ibm.com> - 2017-04-03 18:00 +0200
        Re: [PATCH] KEYS: encrypted: avoid encrypting/decrypting stack  buffers Eric Biggers <ebiggers3@gmail.com> - 2017-04-03 20:30 +0200
  Re: [PATCH] KEYS: encrypted: avoid encrypting/decrypting stack buffers David Howells <dhowells@redhat.com> - 2017-04-03 17:50 +0200

csiph-web