xref: /openbmc/linux/net/xfrm/Kconfig (revision c9e7c76d)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# XFRM configuration
41da177e4SLinus Torvalds#
56a2e9b73SSam Ravnborgconfig XFRM
66a2e9b73SSam Ravnborg	bool
7e54d1527SFlorian Westphal	depends on INET
897e219b7SEric Dumazet	select GRO_CELLS
9a84e3f53SFlorian Westphal	select SKB_EXTENSIONS
106a2e9b73SSam Ravnborg
1125393d3fSSteffen Klassertconfig XFRM_OFFLOAD
1225393d3fSSteffen Klassert	bool
1325393d3fSSteffen Klassert
147e152524SJan Beulichconfig XFRM_ALGO
157e152524SJan Beulich	tristate
167e152524SJan Beulich	select XFRM
177e152524SJan Beulich	select CRYPTO
18597179b0SArnd Bergmann	select CRYPTO_HASH
19b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
207e152524SJan Beulich
21e54d1527SFlorian Westphalif INET
221da177e4SLinus Torvaldsconfig XFRM_USER
23654b32c6SMasahide NAKAMURA	tristate "Transformation user configuration interface"
247e152524SJan Beulich	select XFRM_ALGO
25a7f7f624SMasahiro Yamada	help
26654b32c6SMasahide NAKAMURA	  Support for Transformation(XFRM) user configuration interface
27654b32c6SMasahide NAKAMURA	  like IPsec used by native Linux tools.
281da177e4SLinus Torvalds
291da177e4SLinus Torvalds	  If unsure, say Y.
301da177e4SLinus Torvalds
31c9e7c76dSDmitry Safonovconfig XFRM_USER_COMPAT
32c9e7c76dSDmitry Safonov	tristate "Compatible ABI support"
33c9e7c76dSDmitry Safonov	depends on XFRM_USER && COMPAT_FOR_U64_ALIGNMENT
34c9e7c76dSDmitry Safonov	select WANT_COMPAT_NETLINK_MESSAGES
35c9e7c76dSDmitry Safonov	help
36c9e7c76dSDmitry Safonov	  Transformation(XFRM) user configuration interface like IPsec
37c9e7c76dSDmitry Safonov	  used by compatible Linux applications.
38c9e7c76dSDmitry Safonov
39c9e7c76dSDmitry Safonov	  If unsure, say N.
40c9e7c76dSDmitry Safonov
41f203b76dSSteffen Klassertconfig XFRM_INTERFACE
42f203b76dSSteffen Klassert	tristate "Transformation virtual interface"
43f203b76dSSteffen Klassert	depends on XFRM && IPV6
44a7f7f624SMasahiro Yamada	help
45f203b76dSSteffen Klassert	  This provides a virtual interface to route IPsec traffic.
46f203b76dSSteffen Klassert
47f203b76dSSteffen Klassert	  If unsure, say N.
48f203b76dSSteffen Klassert
49c11f1a15SMasahide NAKAMURAconfig XFRM_SUB_POLICY
50f215bf48SKees Cook	bool "Transformation sub policy support"
51f215bf48SKees Cook	depends on XFRM
52a7f7f624SMasahiro Yamada	help
53c11f1a15SMasahide NAKAMURA	  Support sub policy for developers. By using sub policy with main
54c11f1a15SMasahide NAKAMURA	  one, two policies can be applied to the same packet at once.
55c11f1a15SMasahide NAKAMURA	  Policy which lives shorter time in kernel should be a sub.
56c11f1a15SMasahide NAKAMURA
57c11f1a15SMasahide NAKAMURA	  If unsure, say N.
58c11f1a15SMasahide NAKAMURA
59d0473655SShinta Sugimotoconfig XFRM_MIGRATE
60f215bf48SKees Cook	bool "Transformation migrate database"
61f215bf48SKees Cook	depends on XFRM
62a7f7f624SMasahiro Yamada	help
63d0473655SShinta Sugimoto	  A feature to update locator(s) of a given IPsec security
64d0473655SShinta Sugimoto	  association dynamically.  This feature is required, for
65d0473655SShinta Sugimoto	  instance, in a Mobile IPv6 environment with IPsec configuration
66d0473655SShinta Sugimoto	  where mobile nodes change their attachment point to the Internet.
67d0473655SShinta Sugimoto
68d0473655SShinta Sugimoto	  If unsure, say N.
69d0473655SShinta Sugimoto
708ea84349SMasahide NAKAMURAconfig XFRM_STATISTICS
71f215bf48SKees Cook	bool "Transformation statistics"
72e54d1527SFlorian Westphal	depends on XFRM && PROC_FS
73a7f7f624SMasahiro Yamada	help
748ea84349SMasahide NAKAMURA	  This statistics is not a SNMP/MIB specification but shows
758ea84349SMasahide NAKAMURA	  statistics about transformation error (or almost error) factor
768ea84349SMasahide NAKAMURA	  at packet processing for developer.
778ea84349SMasahide NAKAMURA
788ea84349SMasahide NAKAMURA	  If unsure, say N.
798ea84349SMasahide NAKAMURA
80be013698SEric Biggers# This option selects XFRM_ALGO along with the AH authentication algorithms that
81be013698SEric Biggers# RFC 8221 lists as MUST be implemented.
827d4e3919SEric Biggersconfig XFRM_AH
837d4e3919SEric Biggers	tristate
847d4e3919SEric Biggers	select XFRM_ALGO
857d4e3919SEric Biggers	select CRYPTO
867d4e3919SEric Biggers	select CRYPTO_HMAC
87be013698SEric Biggers	select CRYPTO_SHA256
887d4e3919SEric Biggers
89be013698SEric Biggers# This option selects XFRM_ALGO along with the ESP encryption and authentication
90be013698SEric Biggers# algorithms that RFC 8221 lists as MUST be implemented.
917d4e3919SEric Biggersconfig XFRM_ESP
927d4e3919SEric Biggers	tristate
937d4e3919SEric Biggers	select XFRM_ALGO
947d4e3919SEric Biggers	select CRYPTO
95be013698SEric Biggers	select CRYPTO_AES
967d4e3919SEric Biggers	select CRYPTO_AUTHENC
977d4e3919SEric Biggers	select CRYPTO_CBC
987d4e3919SEric Biggers	select CRYPTO_ECHAINIV
99be013698SEric Biggers	select CRYPTO_GCM
100be013698SEric Biggers	select CRYPTO_HMAC
10137ea0f18SEric Biggers	select CRYPTO_SEQIV
102be013698SEric Biggers	select CRYPTO_SHA256
1037d4e3919SEric Biggers
1046fccab67SHerbert Xuconfig XFRM_IPCOMP
1056fccab67SHerbert Xu	tristate
1067e152524SJan Beulich	select XFRM_ALGO
1076fccab67SHerbert Xu	select CRYPTO
1086fccab67SHerbert Xu	select CRYPTO_DEFLATE
1096fccab67SHerbert Xu
1106a2e9b73SSam Ravnborgconfig NET_KEY
1116a2e9b73SSam Ravnborg	tristate "PF_KEY sockets"
1127e152524SJan Beulich	select XFRM_ALGO
113a7f7f624SMasahiro Yamada	help
1146a2e9b73SSam Ravnborg	  PF_KEYv2 socket family, compatible to KAME ones.
1156a2e9b73SSam Ravnborg	  They are required if you are going to use IPsec tools ported
1166a2e9b73SSam Ravnborg	  from KAME.
1176a2e9b73SSam Ravnborg
1186a2e9b73SSam Ravnborg	  Say Y unless you know what you are doing.
1196a2e9b73SSam Ravnborg
120f6ed0ec0SShinta Sugimotoconfig NET_KEY_MIGRATE
121f215bf48SKees Cook	bool "PF_KEY MIGRATE"
122f215bf48SKees Cook	depends on NET_KEY
123f6ed0ec0SShinta Sugimoto	select XFRM_MIGRATE
124a7f7f624SMasahiro Yamada	help
125f6ed0ec0SShinta Sugimoto	  Add a PF_KEY MIGRATE message to PF_KEYv2 socket family.
126f6ed0ec0SShinta Sugimoto	  The PF_KEY MIGRATE message is used to dynamically update
127f6ed0ec0SShinta Sugimoto	  locator(s) of a given IPsec security association.
128f6ed0ec0SShinta Sugimoto	  This feature is required, for instance, in a Mobile IPv6
129f6ed0ec0SShinta Sugimoto	  environment with IPsec configuration where mobile nodes
130f6ed0ec0SShinta Sugimoto	  change their attachment point to the Internet.  Detail
131f6ed0ec0SShinta Sugimoto	  information can be found in the internet-draft
132f6ed0ec0SShinta Sugimoto	  <draft-sugimoto-mip6-pfkey-migrate>.
133f6ed0ec0SShinta Sugimoto
134f6ed0ec0SShinta Sugimoto	  If unsure, say N.
135e54d1527SFlorian Westphal
13626333c37SSabrina Dubrocaconfig XFRM_ESPINTCP
13726333c37SSabrina Dubroca	bool
13826333c37SSabrina Dubroca
139e54d1527SFlorian Westphalendif # INET
140