提交 c3715cb9 编写于 作者: S Sebastian Siewior 提交者: Herbert Xu

[CRYPTO] api: Make the crypto subsystem fully modular

Signed-off-by: NSebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 76cb9521
...@@ -13,7 +13,7 @@ source "crypto/async_tx/Kconfig" ...@@ -13,7 +13,7 @@ source "crypto/async_tx/Kconfig"
# Cryptographic API Configuration # Cryptographic API Configuration
# #
menuconfig CRYPTO menuconfig CRYPTO
bool "Cryptographic API" tristate "Cryptographic API"
help help
This option provides the core Cryptographic API. This option provides the core Cryptographic API.
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
# Cryptographic API # Cryptographic API
# #
obj-$(CONFIG_CRYPTO) += api.o cipher.o digest.o compress.o obj-$(CONFIG_CRYPTO) += crypto.o
crypto-objs := api.o cipher.o digest.o compress.o
crypto_algapi-$(CONFIG_PROC_FS) += proc.o crypto_algapi-$(CONFIG_PROC_FS) += proc.o
crypto_algapi-objs := algapi.o scatterwalk.o $(crypto_algapi-y) crypto_algapi-objs := algapi.o scatterwalk.o $(crypto_algapi-y)
......
...@@ -445,3 +445,6 @@ int crypto_has_alg(const char *name, u32 type, u32 mask) ...@@ -445,3 +445,6 @@ int crypto_has_alg(const char *name, u32 type, u32 mask)
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(crypto_has_alg); EXPORT_SYMBOL_GPL(crypto_has_alg);
MODULE_DESCRIPTION("Cryptographic core API");
MODULE_LICENSE("GPL");
...@@ -317,14 +317,7 @@ int crypto_unregister_alg(struct crypto_alg *alg); ...@@ -317,14 +317,7 @@ int crypto_unregister_alg(struct crypto_alg *alg);
/* /*
* Algorithm query interface. * Algorithm query interface.
*/ */
#ifdef CONFIG_CRYPTO
int crypto_has_alg(const char *name, u32 type, u32 mask); int crypto_has_alg(const char *name, u32 type, u32 mask);
#else
static inline int crypto_has_alg(const char *name, u32 type, u32 mask)
{
return 0;
}
#endif
/* /*
* Transforms: user-instantiated objects which encapsulate algorithms * Transforms: user-instantiated objects which encapsulate algorithms
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册