Thread (4 messages) 4 messages, 2 authors, 2015-01-16

Re: [PATCH] crypto: algif - change algif_skcipher to be asynchronous

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2015-01-16 02:01:02
Also in: linux-api

On Wed, Jan 14, 2015 at 09:36:57AM -0800, Tadeusz Struk wrote:
But then would you like to extend AIO interface to take the IV and
something that would indicate the encrypt/decrypt operation on
aio_write()? Also as far as I can see AIO doesn't support splice()
Any metadata such as the IV can still go through the existing
sendmsg interface, just as you would do a sendmsg before a sendfile
to set things up.
operation for zero copy, which is the main thing here.
The AIO interface itself can accomodate zero-copy.  It's just that
we currently don't have any support for it in the network socket
API.
quoted
From the other hand it shouldn't be a problem to add crypto specific
stuff to include/uapi/linux/if_alg.h, because it is all about crypto
anyway, is it not?
Yes but you're violating the meaning of sendpage().  The latter
is not crypto-specific so you shouldn't be adding things that
prevent future optimisations to it.

Cheers,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help