Skip to content

Commit

Permalink
[CRYPTO] api: Make the crypto subsystem fully modular
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Siewior <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
sebastianas authored and herbertx committed Apr 21, 2008
1 parent 76cb952 commit c3715cb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ source "crypto/async_tx/Kconfig"
# Cryptographic API Configuration
#
menuconfig CRYPTO
bool "Cryptographic API"
tristate "Cryptographic API"
help
This option provides the core Cryptographic API.

Expand Down
3 changes: 2 additions & 1 deletion crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# 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-objs := algapi.o scatterwalk.o $(crypto_algapi-y)
Expand Down
3 changes: 3 additions & 0 deletions crypto/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,3 +445,6 @@ int crypto_has_alg(const char *name, u32 type, u32 mask)
return ret;
}
EXPORT_SYMBOL_GPL(crypto_has_alg);

MODULE_DESCRIPTION("Cryptographic core API");
MODULE_LICENSE("GPL");
7 changes: 0 additions & 7 deletions include/linux/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,14 +317,7 @@ int crypto_unregister_alg(struct crypto_alg *alg);
/*
* Algorithm query interface.
*/
#ifdef CONFIG_CRYPTO
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
Expand Down

0 comments on commit c3715cb

Please sign in to comment.