crypto: remove cipher routines from public crypto API
authorArd Biesheuvel <ardb@kernel.org>
Fri, 11 Dec 2020 12:27:15 +0000 (13:27 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 2 Jan 2021 21:41:35 +0000 (08:41 +1100)
commit0eb76ba29d16df2951d37c54ca279c4e5630b071
tree4e698726c2e03b2203e98ac45b714af4ef5533ce
parenta3b01ffddc210a836eda8aa751cfa911a2817a85
crypto: remove cipher routines from public crypto API

The cipher routines in the crypto API are mostly intended for templates
implementing skcipher modes generically in software, and shouldn't be
used outside of the crypto subsystem. So move the prototypes and all
related definitions to a new header file under include/crypto/internal.
Also, let's use the new module namespace feature to move the symbol
exports into a new namespace CRYPTO_INTERNAL.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
33 files changed:
Documentation/crypto/api-skcipher.rst
arch/arm/crypto/aes-neonbs-glue.c
arch/s390/crypto/aes_s390.c
crypto/adiantum.c
crypto/ansi_cprng.c
crypto/cbc.c
crypto/ccm.c
crypto/cfb.c
crypto/cipher.c
crypto/cmac.c
crypto/ctr.c
crypto/drbg.c
crypto/ecb.c
crypto/essiv.c
crypto/keywrap.c
crypto/ofb.c
crypto/pcbc.c
crypto/skcipher.c
crypto/testmgr.c
crypto/vmac.c
crypto/xcbc.c
crypto/xts.c
drivers/crypto/geode-aes.c
drivers/crypto/inside-secure/safexcel.c
drivers/crypto/inside-secure/safexcel_hash.c
drivers/crypto/qat/qat_common/adf_ctl_drv.c
drivers/crypto/qat/qat_common/qat_algs.c
drivers/crypto/vmx/aes.c
drivers/crypto/vmx/vmx.c
include/crypto/algapi.h
include/crypto/internal/cipher.h [new file with mode: 0644]
include/crypto/internal/skcipher.h
include/linux/crypto.h