diff --git a/crypto/Kconfig b/crypto/Kconfig
index 467491df3e3ae6ada58a992616526cfd72247a71..96b0e5542121b3c9a1c30b57fc91ed76c430c182 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -848,6 +848,7 @@ config CRYPTO_USER_API
 
 config CRYPTO_USER_API_HASH
 	tristate "User-space interface for hash algorithms"
+	depends on NET
 	select CRYPTO_HASH
 	select CRYPTO_USER_API
 	help
@@ -856,6 +857,7 @@ config CRYPTO_USER_API_HASH
 
 config CRYPTO_USER_API_SKCIPHER
 	tristate "User-space interface for symmetric key cipher algorithms"
+	depends on NET
 	select CRYPTO_BLKCIPHER
 	select CRYPTO_USER_API
 	help