Eric Biggers dc26c17f74 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>
2018-01-12 23:03:39 +11:00
..
2017-11-30 13:37:29 +01:00
2017-11-15 10:56:56 -08:00
2017-11-15 20:30:12 -08:00
2017-11-15 14:54:53 -08:00
2017-12-10 08:24:16 -08:00
2017-11-20 21:50:24 -10:00
2017-11-16 13:06:27 -08:00