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
..
internal
crypto: hash - introduce crypto_hash_alg_has_setkey()
2018-01-12 23:03:09 +11:00
ablk_helper.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
acompress.h
aead.h
crypto: aead - prevent using AEADs without setting key
2018-01-12 23:03:39 +11:00
aes.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
akcipher.h
crypto: akcipher - assume key is already set in maxsize
2017-06-10 12:04:29 +08:00
algapi.h
crypto: algapi - make crypto_xor() take separate dst and src arguments
2017-08-04 09:27:15 +08:00
authenc.h
b128ops.h
blowfish.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
cast5.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
cast6.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
cast_common.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
cbc.h
chacha20.h
crypto: chacha20 - Fix keystream alignment for chacha20_block()
2017-11-29 17:33:33 +11:00
cryptd.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
crypto_wq.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
ctr.h
des.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
dh.h
crypto: dh - return unsigned value for crypto_dh_key_len()
2017-10-12 22:55:05 +08:00
drbg.h
crypto: drbg - move to generic async completion
2017-11-03 22:11:19 +08:00
ecdh.h
crypto: ecdh - return unsigned value for crypto_ecdh_key_len()
2017-10-12 22:55:00 +08:00
engine.h
crypto: engine - replace pr_xxx by dev_xxx
2017-06-19 14:19:54 +08:00
gcm.h
crypto: gcm - add GCM IV size constant
2017-09-22 17:43:08 +08:00
gf128mul.h
crypto: gf128mul - The x8_ble multiplication functions
2017-11-03 21:50:43 +08:00
ghash.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
hash.h
crypto: hash - prevent using keyed hashes without setting key
2018-01-12 23:03:37 +11:00
hash_info.h
hmac.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
if_alg.h
crypto: af_alg - Fix race around ctx->rcvused by making it atomic_t
2017-12-22 19:02:40 +11:00
kpp.h
crypto: kpp - add get/set_flags helpers
2017-07-18 17:50:57 +08:00
lrw.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
mcryptd.h
crypto: mcryptd - protect the per-CPU queue with a lock
2017-12-11 22:29:54 +11:00
md5.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
null.h
crypto: null - Get rid of crypto_{get,put}_default_null_skcipher2()
2017-12-22 19:29:08 +11:00
padlock.h
pcrypt.h
pkcs7.h
poly1305.h
crypto: poly1305 - remove ->setkey() method
2018-01-12 23:03:14 +11:00
public_key.h
KEYS: Keyring asymmetric key restrict method with chaining
2017-04-04 14:10:13 -07:00
rng.h
scatterwalk.h
serpent.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
sha.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
sha1_base.h
sha3.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
sha256_base.h
sha512_base.h
skcipher.h
crypto: skcipher - prevent using skciphers without setting key
2018-01-12 23:03:39 +11:00
sm3.h
crypto: sm3 - add OSCCA SM3 secure hash
2017-09-22 17:43:07 +08:00
sm3_base.h
crypto: sm3 - add OSCCA SM3 secure hash
2017-09-22 17:43:07 +08:00
twofish.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
vmac.h
xts.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00