blob: 3adf31a83a79a27a29d8a99e6724d51de5e2ab25 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
3# XFRM configuration
4#
Sam Ravnborg6a2e9b72005-07-11 21:13:56 -07005config XFRM
Krzysztof Kozlowski43da1412019-11-21 21:28:35 +08006 bool
7 depends on INET
8 select GRO_CELLS
9 select SKB_EXTENSIONS
Sam Ravnborg6a2e9b72005-07-11 21:13:56 -070010
Steffen Klassert25393d32017-02-15 09:39:44 +010011config XFRM_OFFLOAD
Krzysztof Kozlowski43da1412019-11-21 21:28:35 +080012 bool
Steffen Klassert25393d32017-02-15 09:39:44 +010013
Jan Beulich7e152522012-05-15 01:57:44 +000014config XFRM_ALGO
15 tristate
16 select XFRM
17 select CRYPTO
Arnd Bergmann597179b2019-06-18 13:22:13 +020018 select CRYPTO_HASH
Eric Biggersb95bba52019-10-25 12:41:13 -070019 select CRYPTO_SKCIPHER
Jan Beulich7e152522012-05-15 01:57:44 +000020
Florian Westphale54d1522019-04-12 10:14:46 +020021if INET
Linus Torvalds1da177e2005-04-16 15:20:36 -070022config XFRM_USER
Masahide NAKAMURA654b32c2006-08-23 19:12:56 -070023 tristate "Transformation user configuration interface"
Jan Beulich7e152522012-05-15 01:57:44 +000024 select XFRM_ALGO
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090025 help
Masahide NAKAMURA654b32c2006-08-23 19:12:56 -070026 Support for Transformation(XFRM) user configuration interface
27 like IPsec used by native Linux tools.
Linus Torvalds1da177e2005-04-16 15:20:36 -070028
29 If unsure, say Y.
30
Dmitry Safonovc9e7c762020-09-21 15:36:51 +010031config XFRM_USER_COMPAT
32 tristate "Compatible ABI support"
Dmitry Safonov5106f4a2020-09-21 15:36:55 +010033 depends on XFRM_USER && COMPAT_FOR_U64_ALIGNMENT && \
34 HAVE_EFFICIENT_UNALIGNED_ACCESS
Dmitry Safonovc9e7c762020-09-21 15:36:51 +010035 select WANT_COMPAT_NETLINK_MESSAGES
36 help
37 Transformation(XFRM) user configuration interface like IPsec
38 used by compatible Linux applications.
39
40 If unsure, say N.
41
Steffen Klassertf203b762018-06-12 14:07:12 +020042config XFRM_INTERFACE
43 tristate "Transformation virtual interface"
44 depends on XFRM && IPV6
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090045 help
Steffen Klassertf203b762018-06-12 14:07:12 +020046 This provides a virtual interface to route IPsec traffic.
47
48 If unsure, say N.
49
Masahide NAKAMURAc11f1a12006-08-23 22:38:14 -070050config XFRM_SUB_POLICY
Kees Cookf215bf42012-10-02 11:20:07 -070051 bool "Transformation sub policy support"
52 depends on XFRM
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090053 help
Masahide NAKAMURAc11f1a12006-08-23 22:38:14 -070054 Support sub policy for developers. By using sub policy with main
55 one, two policies can be applied to the same packet at once.
56 Policy which lives shorter time in kernel should be a sub.
57
58 If unsure, say N.
59
Shinta Sugimotod0473652007-02-08 13:13:07 -080060config XFRM_MIGRATE
Kees Cookf215bf42012-10-02 11:20:07 -070061 bool "Transformation migrate database"
62 depends on XFRM
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090063 help
Shinta Sugimotod0473652007-02-08 13:13:07 -080064 A feature to update locator(s) of a given IPsec security
65 association dynamically. This feature is required, for
66 instance, in a Mobile IPv6 environment with IPsec configuration
67 where mobile nodes change their attachment point to the Internet.
68
69 If unsure, say N.
70
Masahide NAKAMURA8ea84342007-12-20 20:44:02 -080071config XFRM_STATISTICS
Kees Cookf215bf42012-10-02 11:20:07 -070072 bool "Transformation statistics"
Florian Westphale54d1522019-04-12 10:14:46 +020073 depends on XFRM && PROC_FS
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090074 help
Masahide NAKAMURA8ea84342007-12-20 20:44:02 -080075 This statistics is not a SNMP/MIB specification but shows
76 statistics about transformation error (or almost error) factor
77 at packet processing for developer.
78
79 If unsure, say N.
80
Eric Biggersbe013692020-06-10 09:14:37 -070081# This option selects XFRM_ALGO along with the AH authentication algorithms that
82# RFC 8221 lists as MUST be implemented.
Eric Biggers7d4e3912020-06-10 09:14:35 -070083config XFRM_AH
84 tristate
85 select XFRM_ALGO
86 select CRYPTO
87 select CRYPTO_HMAC
Eric Biggersbe013692020-06-10 09:14:37 -070088 select CRYPTO_SHA256
Eric Biggers7d4e3912020-06-10 09:14:35 -070089
Eric Biggersbe013692020-06-10 09:14:37 -070090# This option selects XFRM_ALGO along with the ESP encryption and authentication
91# algorithms that RFC 8221 lists as MUST be implemented.
Eric Biggers7d4e3912020-06-10 09:14:35 -070092config XFRM_ESP
93 tristate
94 select XFRM_ALGO
95 select CRYPTO
Eric Biggersbe013692020-06-10 09:14:37 -070096 select CRYPTO_AES
Eric Biggers7d4e3912020-06-10 09:14:35 -070097 select CRYPTO_AUTHENC
Eric Biggers7d4e3912020-06-10 09:14:35 -070098 select CRYPTO_CBC
Eric Biggers7d4e3912020-06-10 09:14:35 -070099 select CRYPTO_ECHAINIV
Eric Biggersbe013692020-06-10 09:14:37 -0700100 select CRYPTO_GCM
101 select CRYPTO_HMAC
Eric Biggers37ea0f12020-06-10 09:14:36 -0700102 select CRYPTO_SEQIV
Eric Biggersbe013692020-06-10 09:14:37 -0700103 select CRYPTO_SHA256
Eric Biggers7d4e3912020-06-10 09:14:35 -0700104
Herbert Xu6fccab62008-07-25 02:54:40 -0700105config XFRM_IPCOMP
106 tristate
Jan Beulich7e152522012-05-15 01:57:44 +0000107 select XFRM_ALGO
Herbert Xu6fccab62008-07-25 02:54:40 -0700108 select CRYPTO
109 select CRYPTO_DEFLATE
110
Sam Ravnborg6a2e9b72005-07-11 21:13:56 -0700111config NET_KEY
112 tristate "PF_KEY sockets"
Jan Beulich7e152522012-05-15 01:57:44 +0000113 select XFRM_ALGO
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +0900114 help
Sam Ravnborg6a2e9b72005-07-11 21:13:56 -0700115 PF_KEYv2 socket family, compatible to KAME ones.
116 They are required if you are going to use IPsec tools ported
117 from KAME.
118
119 Say Y unless you know what you are doing.
120
Shinta Sugimotof6ed0ec2007-02-08 13:15:05 -0800121config NET_KEY_MIGRATE
Kees Cookf215bf42012-10-02 11:20:07 -0700122 bool "PF_KEY MIGRATE"
123 depends on NET_KEY
Shinta Sugimotof6ed0ec2007-02-08 13:15:05 -0800124 select XFRM_MIGRATE
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +0900125 help
Shinta Sugimotof6ed0ec2007-02-08 13:15:05 -0800126 Add a PF_KEY MIGRATE message to PF_KEYv2 socket family.
127 The PF_KEY MIGRATE message is used to dynamically update
128 locator(s) of a given IPsec security association.
129 This feature is required, for instance, in a Mobile IPv6
130 environment with IPsec configuration where mobile nodes
131 change their attachment point to the Internet. Detail
132 information can be found in the internet-draft
133 <draft-sugimoto-mip6-pfkey-migrate>.
134
135 If unsure, say N.
Florian Westphale54d1522019-04-12 10:14:46 +0200136
Sabrina Dubroca26333c32020-04-27 17:59:35 +0200137config XFRM_ESPINTCP
138 bool
139
Florian Westphale54d1522019-04-12 10:14:46 +0200140endif # INET