diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config
index 21b646d10b88f10e02315859ef67351f6ad0a29d..86ab429fe7f3bf506cf28c05ec6bec37cc11cdc0 100644
--- a/tools/testing/selftests/net/config
+++ b/tools/testing/selftests/net/config
@@ -43,3 +43,4 @@ CONFIG_NET_ACT_TUNNEL_KEY=m
 CONFIG_NET_ACT_MIRRED=m
 CONFIG_BAREUDP=m
 CONFIG_IPV6_IOAM6_LWTUNNEL=y
+CONFIG_CRYPTO_SM4=y