18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# XFRM configuration
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ciconfig XFRM
68c2ecf20Sopenharmony_ci	bool
78c2ecf20Sopenharmony_ci	depends on INET
88c2ecf20Sopenharmony_ci	select GRO_CELLS
98c2ecf20Sopenharmony_ci	select SKB_EXTENSIONS
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciconfig XFRM_OFFLOAD
128c2ecf20Sopenharmony_ci	bool
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciconfig XFRM_ALGO
158c2ecf20Sopenharmony_ci	tristate
168c2ecf20Sopenharmony_ci	select XFRM
178c2ecf20Sopenharmony_ci	select CRYPTO
188c2ecf20Sopenharmony_ci	select CRYPTO_HASH
198c2ecf20Sopenharmony_ci	select CRYPTO_SKCIPHER
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciif INET
228c2ecf20Sopenharmony_ciconfig XFRM_USER
238c2ecf20Sopenharmony_ci	tristate "Transformation user configuration interface"
248c2ecf20Sopenharmony_ci	select XFRM_ALGO
258c2ecf20Sopenharmony_ci	help
268c2ecf20Sopenharmony_ci	  Support for Transformation(XFRM) user configuration interface
278c2ecf20Sopenharmony_ci	  like IPsec used by native Linux tools.
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci	  If unsure, say Y.
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciconfig XFRM_USER_COMPAT
328c2ecf20Sopenharmony_ci	tristate "Compatible ABI support"
338c2ecf20Sopenharmony_ci	depends on XFRM_USER && COMPAT_FOR_U64_ALIGNMENT && \
348c2ecf20Sopenharmony_ci		HAVE_EFFICIENT_UNALIGNED_ACCESS
358c2ecf20Sopenharmony_ci	select WANT_COMPAT_NETLINK_MESSAGES
368c2ecf20Sopenharmony_ci	help
378c2ecf20Sopenharmony_ci	  Transformation(XFRM) user configuration interface like IPsec
388c2ecf20Sopenharmony_ci	  used by compatible Linux applications.
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci	  If unsure, say N.
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciconfig XFRM_INTERFACE
438c2ecf20Sopenharmony_ci	tristate "Transformation virtual interface"
448c2ecf20Sopenharmony_ci	depends on XFRM && IPV6
458c2ecf20Sopenharmony_ci	help
468c2ecf20Sopenharmony_ci	  This provides a virtual interface to route IPsec traffic.
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci	  If unsure, say N.
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ciconfig XFRM_SUB_POLICY
518c2ecf20Sopenharmony_ci	bool "Transformation sub policy support"
528c2ecf20Sopenharmony_ci	depends on XFRM
538c2ecf20Sopenharmony_ci	help
548c2ecf20Sopenharmony_ci	  Support sub policy for developers. By using sub policy with main
558c2ecf20Sopenharmony_ci	  one, two policies can be applied to the same packet at once.
568c2ecf20Sopenharmony_ci	  Policy which lives shorter time in kernel should be a sub.
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci	  If unsure, say N.
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ciconfig XFRM_MIGRATE
618c2ecf20Sopenharmony_ci	bool "Transformation migrate database"
628c2ecf20Sopenharmony_ci	depends on XFRM
638c2ecf20Sopenharmony_ci	help
648c2ecf20Sopenharmony_ci	  A feature to update locator(s) of a given IPsec security
658c2ecf20Sopenharmony_ci	  association dynamically.  This feature is required, for
668c2ecf20Sopenharmony_ci	  instance, in a Mobile IPv6 environment with IPsec configuration
678c2ecf20Sopenharmony_ci	  where mobile nodes change their attachment point to the Internet.
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ci	  If unsure, say N.
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ciconfig XFRM_STATISTICS
728c2ecf20Sopenharmony_ci	bool "Transformation statistics"
738c2ecf20Sopenharmony_ci	depends on XFRM && PROC_FS
748c2ecf20Sopenharmony_ci	help
758c2ecf20Sopenharmony_ci	  This statistics is not a SNMP/MIB specification but shows
768c2ecf20Sopenharmony_ci	  statistics about transformation error (or almost error) factor
778c2ecf20Sopenharmony_ci	  at packet processing for developer.
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ci	  If unsure, say N.
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci# This option selects XFRM_ALGO along with the AH authentication algorithms that
828c2ecf20Sopenharmony_ci# RFC 8221 lists as MUST be implemented.
838c2ecf20Sopenharmony_ciconfig XFRM_AH
848c2ecf20Sopenharmony_ci	tristate
858c2ecf20Sopenharmony_ci	select XFRM_ALGO
868c2ecf20Sopenharmony_ci	select CRYPTO
878c2ecf20Sopenharmony_ci	select CRYPTO_HMAC
888c2ecf20Sopenharmony_ci	select CRYPTO_SHA256
898c2ecf20Sopenharmony_ci
908c2ecf20Sopenharmony_ci# This option selects XFRM_ALGO along with the ESP encryption and authentication
918c2ecf20Sopenharmony_ci# algorithms that RFC 8221 lists as MUST be implemented.
928c2ecf20Sopenharmony_ciconfig XFRM_ESP
938c2ecf20Sopenharmony_ci	tristate
948c2ecf20Sopenharmony_ci	select XFRM_ALGO
958c2ecf20Sopenharmony_ci	select CRYPTO
968c2ecf20Sopenharmony_ci	select CRYPTO_AES
978c2ecf20Sopenharmony_ci	select CRYPTO_AUTHENC
988c2ecf20Sopenharmony_ci	select CRYPTO_CBC
998c2ecf20Sopenharmony_ci	select CRYPTO_ECHAINIV
1008c2ecf20Sopenharmony_ci	select CRYPTO_GCM
1018c2ecf20Sopenharmony_ci	select CRYPTO_HMAC
1028c2ecf20Sopenharmony_ci	select CRYPTO_SEQIV
1038c2ecf20Sopenharmony_ci	select CRYPTO_SHA256
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_ciconfig XFRM_IPCOMP
1068c2ecf20Sopenharmony_ci	tristate
1078c2ecf20Sopenharmony_ci	select XFRM_ALGO
1088c2ecf20Sopenharmony_ci	select CRYPTO
1098c2ecf20Sopenharmony_ci	select CRYPTO_DEFLATE
1108c2ecf20Sopenharmony_ci
1118c2ecf20Sopenharmony_ciconfig NET_KEY
1128c2ecf20Sopenharmony_ci	tristate "PF_KEY sockets"
1138c2ecf20Sopenharmony_ci	select XFRM_ALGO
1148c2ecf20Sopenharmony_ci	help
1158c2ecf20Sopenharmony_ci	  PF_KEYv2 socket family, compatible to KAME ones.
1168c2ecf20Sopenharmony_ci	  They are required if you are going to use IPsec tools ported
1178c2ecf20Sopenharmony_ci	  from KAME.
1188c2ecf20Sopenharmony_ci
1198c2ecf20Sopenharmony_ci	  Say Y unless you know what you are doing.
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ciconfig NET_KEY_MIGRATE
1228c2ecf20Sopenharmony_ci	bool "PF_KEY MIGRATE"
1238c2ecf20Sopenharmony_ci	depends on NET_KEY
1248c2ecf20Sopenharmony_ci	select XFRM_MIGRATE
1258c2ecf20Sopenharmony_ci	help
1268c2ecf20Sopenharmony_ci	  Add a PF_KEY MIGRATE message to PF_KEYv2 socket family.
1278c2ecf20Sopenharmony_ci	  The PF_KEY MIGRATE message is used to dynamically update
1288c2ecf20Sopenharmony_ci	  locator(s) of a given IPsec security association.
1298c2ecf20Sopenharmony_ci	  This feature is required, for instance, in a Mobile IPv6
1308c2ecf20Sopenharmony_ci	  environment with IPsec configuration where mobile nodes
1318c2ecf20Sopenharmony_ci	  change their attachment point to the Internet.  Detail
1328c2ecf20Sopenharmony_ci	  information can be found in the internet-draft
1338c2ecf20Sopenharmony_ci	  <draft-sugimoto-mip6-pfkey-migrate>.
1348c2ecf20Sopenharmony_ci
1358c2ecf20Sopenharmony_ci	  If unsure, say N.
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ciconfig XFRM_ESPINTCP
1388c2ecf20Sopenharmony_ci	bool
1398c2ecf20Sopenharmony_ci
1408c2ecf20Sopenharmony_ciendif # INET
141