summaryrefslogtreecommitdiff
path: root/crypto/Makefile
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-01-03 11:16:30 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-12 23:03:39 +1100
commitd2dd68415e32ac6ce141461815a29a119b458ccd (patch)
tree70f9000d39566aa384e47c0cd0ccee9977297455 /crypto/Makefile
parentafef2cfab1cc0c1a6528fb266c6c609f5d028900 (diff)
downloadlinux-crypto-d2dd68415e32ac6ce141461815a29a119b458ccd.tar.gz
linux-crypto-d2dd68415e32ac6ce141461815a29a119b458ccd.zip
crypto: aead - prevent using AEADs without setting key
Similar to what was done for the hash API, update the AEAD API to track whether each transform has been keyed, and reject encryption/decryption if a key is needed but one hasn't been set. This isn't quite as important as the equivalent fix for the hash API because AEADs always require a key, so are unlikely to be used without one. Still, tracking the key will prevent accidental unkeyed use. algif_aead also had to track the key anyway, so the new flag replaces that and slightly simplifies the algif_aead implementation. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Makefile')
0 files changed, 0 insertions, 0 deletions