path: root/crypto/testmgr.c
diff options
authorArd Biesheuvel <>2020-12-11 13:27:15 +0100
committerHerbert Xu <>2021-01-03 08:41:35 +1100
commit0eb76ba29d16df2951d37c54ca279c4e5630b071 (patch)
tree4e698726c2e03b2203e98ac45b714af4ef5533ce /crypto/testmgr.c
parenta3b01ffddc210a836eda8aa751cfa911a2817a85 (diff)
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 <> Acked-by: Eric Biggers <> Signed-off-by: Herbert Xu <>
Diffstat (limited to 'crypto/testmgr.c')
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 321e38eef51b..a896d77e9611 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -33,10 +33,13 @@
#include <crypto/akcipher.h>
#include <crypto/kpp.h>
#include <crypto/acompress.h>
+#include <crypto/internal/cipher.h>
#include <crypto/internal/simd.h>
#include "internal.h"
static bool notests;
module_param(notests, bool, 0644);
MODULE_PARM_DESC(notests, "disable crypto self-tests");