summaryrefslogtreecommitdiff
path: root/crypto/ecb.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2020-12-11 13:27:15 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2021-01-03 08:41:35 +1100
commit22b50be78f272572c25f21531a5c42cd4c23b86d (patch)
tree8782eb8a4bcb42f2ee094a37607788bd18ec9591 /crypto/ecb.c
parentcbebe807d8465ef8f541a57c12ed6a3b55f73629 (diff)
downloadlinux-crypto-22b50be78f272572c25f21531a5c42cd4c23b86d.tar.gz
linux-crypto-22b50be78f272572c25f21531a5c42cd4c23b86d.zip
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>
Diffstat (limited to 'crypto/ecb.c')
-rw-r--r--crypto/ecb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ecb.c b/crypto/ecb.c
index 69a687cb..71fbb054 100644
--- a/crypto/ecb.c
+++ b/crypto/ecb.c
@@ -6,6 +6,7 @@
*/
#include <crypto/algapi.h>
+#include <crypto/internal/cipher.h>
#include <crypto/internal/skcipher.h>
#include <linux/err.h>
#include <linux/init.h>