17 Oct, 2016
1 commit
-
Some crypto implementations (such as the generic CCM wrapper in crypto/)
use scatterlists to map fields of private data in their struct aead_req.
This means these data structures cannot live in the vmalloc area, which
means that they cannot live on the stack (with CONFIG_VMAP_STACK.)This currently occurs only with the generic software implementation, but
the private data and usage is implementation specific, so move the whole
data structures off the stack into heap by allocating every time we need
to use them.In addition, take care not to put any of our own stack allocations into
scatterlists. This involves reserving some extra room when allocating the
aead_request structures, and referring to those allocations in the scatter-
lists (while copying the data from the stack before the crypto operation)Signed-off-by: Ard Biesheuvel
Signed-off-by: Johannes Berg
28 May, 2015
1 commit
-
This patch makes use of the new AEAD interface which uses a single
SG list instead of separate lists for the AD and plain text.Tested-by: Johannes Berg
Signed-off-by: Herbert Xu
23 Apr, 2015
1 commit
-
All users of AEAD should include crypto/aead.h instead of
include/linux/crypto.h.Signed-off-by: Herbert Xu
Acked-by: David S. Miller
30 Mar, 2015
1 commit
-
This code is written using an anti-pattern called "success handling"
which makes it hard to read, especially if you are used to normal kernel
style. It should instead be written as a list of directives in a row
with branches for error handling.(Basically copied from Dan's previous patch for CCM)
Signed-off-by: Johannes Berg
27 Jan, 2015
1 commit
-
This allows mac80211 to configure GCMP and GCMP-256 to the driver and
also use software-implementation within mac80211 when the driver does
not support this with hardware accelaration.Signed-off-by: Jouni Malinen
[remove a spurious newline]
Signed-off-by: Johannes Berg