Thread (9 messages) flat view 9 messages, 3 authors, 2016-06-23

Re: Doing crypto in small stack buffers (bluetooth vs vmalloc-stack crash, etc)

From: Andy Lutomirski <luto@amacapital.net>
Date: 2016-06-22 01:52:58
Also in: linux-crypto, lkml

On Tue, Jun 21, 2016 at 5:42 PM, Herbert Xu [off-list ref] wrote:
On Tue, Jun 21, 2016 at 10:43:40AM -0700, Andy Lutomirski wrote:
quoted
Is there a straightforward way that bluetooth and, potentially, other
drivers can just do synchronous crypto in a small buffer specified by
its virtual address?  The actual cryptography part of the crypto code
already works this way, but I can't find an API for it.
Yes, single block users should use crypto_cipher_encrypt_one, an
example would be drivers/md/dm-crypt.c.
Aha!  I expected something like that to exist, but I couldn't find it.
I'll change the two offenders I've found so far to use it.

--Andy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help