linux/drivers/crypto/nx
Eric Biggers 7740bd51ef crypto: nx - don't abuse blkcipher_desc to pass iv around
The NX crypto driver is using 'struct blkcipher_desc' to pass the IV
around, even for AEADs (for which it creates the struct on the stack).
This is not appropriate since this structure is part of the "blkcipher"
API, which is deprecated and will be removed.

Just pass around the IV directly instead.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-10-23 19:46:58 +11:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nx_csbcpb.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nx_debugfs.c Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2019-07-08 20:57:08 -07:00
nx-842-powernv.c crypto: nx - Add of_node_put() before return in 842 2019-08-02 14:44:32 +10:00
nx-842-pseries.c locking/atomic, crypto/nx: Remove redundant casts 2019-06-03 12:32:57 +02:00
nx-842.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
nx-842.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nx-aes-cbc.c crypto: nx - don't abuse blkcipher_desc to pass iv around 2019-10-23 19:46:58 +11:00
nx-aes-ccm.c crypto: nx - don't abuse blkcipher_desc to pass iv around 2019-10-23 19:46:58 +11:00
nx-aes-ctr.c crypto: nx - don't abuse blkcipher_desc to pass iv around 2019-10-23 19:46:58 +11:00
nx-aes-ecb.c crypto: nx - don't abuse blkcipher_desc to pass iv around 2019-10-23 19:46:58 +11:00
nx-aes-gcm.c crypto: nx - don't abuse blkcipher_desc to pass iv around 2019-10-23 19:46:58 +11:00
nx-aes-xcbc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 299 2019-06-05 17:36:59 +02:00
nx-sha256.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 299 2019-06-05 17:36:59 +02:00
nx-sha512.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 299 2019-06-05 17:36:59 +02:00
nx.c crypto: nx - don't abuse blkcipher_desc to pass iv around 2019-10-23 19:46:58 +11:00
nx.h crypto: nx - don't abuse blkcipher_desc to pass iv around 2019-10-23 19:46:58 +11:00