Thread (9 messages) 9 messages, 5 authors, 2016-10-19

Re: [PATCH] crypto: ccm - avoid scatterlist for MAC encryption

From: Ard Biesheuvel <hidden>
Date: 2016-10-19 15:08:20
Also in: lkml, netdev

On 19 October 2016 at 08:43, Johannes Berg [off-list ref] wrote:
On Wed, 2016-10-19 at 11:31 +0800, Herbert Xu wrote:
quoted
On Mon, Oct 17, 2016 at 06:21:14PM +0100, Ard Biesheuvel wrote:
quoted

Annoyingly, all this complication with scatterlists etc is for
doing
asynchronous crypto via DMA capable crypto accelerators, and the
networking code (ipsec as well as mac80211, afaik) only allow
synchronous in the first place, given that they execute in softirq
context.
I'm still thinking about the issue (in particular, whether we
should continue to rely on the request context being SG-capable
or allow it to be on the stack for AEAD).
:)
quoted
But IPsec definitely supports async crypto.  In fact it was the
very first user of async crypto.
Yeah.
Ah yes, my bad.
quoted
mac80211 on the other hand is currently sync-only.
We could probably make mac80211 do that too, but can we guarantee in-
order processing? Anyway, it's pretty low priority, maybe never
happening, since hardly anyone really uses "software" crypto, the wifi
devices mostly have it built in anyway.
Indeed. The code is now correct in terms of API requirements, so let's
just wait for someone to complain about any performance regressions.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help