e79b48dab61b6fbf12a3bff71cf826facfef56b5
[linux-2.6-microblaze.git] / net / xfrm / Kconfig
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # XFRM configuration
4 #
5 config XFRM
6         bool
7         depends on INET
8         select GRO_CELLS
9         select SKB_EXTENSIONS
10
11 config XFRM_OFFLOAD
12         bool
13
14 config XFRM_ALGO
15         tristate
16         select XFRM
17         select CRYPTO
18         select CRYPTO_HASH
19         select CRYPTO_SKCIPHER
20
21 if INET
22 config XFRM_USER
23         tristate "Transformation user configuration interface"
24         select XFRM_ALGO
25         help
26           Support for Transformation(XFRM) user configuration interface
27           like IPsec used by native Linux tools.
28
29           If unsure, say Y.
30
31 config XFRM_USER_COMPAT
32         tristate "Compatible ABI support"
33         depends on XFRM_USER && COMPAT_FOR_U64_ALIGNMENT
34         select WANT_COMPAT_NETLINK_MESSAGES
35         help
36           Transformation(XFRM) user configuration interface like IPsec
37           used by compatible Linux applications.
38
39           If unsure, say N.
40
41 config XFRM_INTERFACE
42         tristate "Transformation virtual interface"
43         depends on XFRM && IPV6
44         help
45           This provides a virtual interface to route IPsec traffic.
46
47           If unsure, say N.
48
49 config XFRM_SUB_POLICY
50         bool "Transformation sub policy support"
51         depends on XFRM
52         help
53           Support sub policy for developers. By using sub policy with main
54           one, two policies can be applied to the same packet at once.
55           Policy which lives shorter time in kernel should be a sub.
56
57           If unsure, say N.
58
59 config XFRM_MIGRATE
60         bool "Transformation migrate database"
61         depends on XFRM
62         help
63           A feature to update locator(s) of a given IPsec security
64           association dynamically.  This feature is required, for
65           instance, in a Mobile IPv6 environment with IPsec configuration
66           where mobile nodes change their attachment point to the Internet.
67
68           If unsure, say N.
69
70 config XFRM_STATISTICS
71         bool "Transformation statistics"
72         depends on XFRM && PROC_FS
73         help
74           This statistics is not a SNMP/MIB specification but shows
75           statistics about transformation error (or almost error) factor
76           at packet processing for developer.
77
78           If unsure, say N.
79
80 # This option selects XFRM_ALGO along with the AH authentication algorithms that
81 # RFC 8221 lists as MUST be implemented.
82 config XFRM_AH
83         tristate
84         select XFRM_ALGO
85         select CRYPTO
86         select CRYPTO_HMAC
87         select CRYPTO_SHA256
88
89 # This option selects XFRM_ALGO along with the ESP encryption and authentication
90 # algorithms that RFC 8221 lists as MUST be implemented.
91 config XFRM_ESP
92         tristate
93         select XFRM_ALGO
94         select CRYPTO
95         select CRYPTO_AES
96         select CRYPTO_AUTHENC
97         select CRYPTO_CBC
98         select CRYPTO_ECHAINIV
99         select CRYPTO_GCM
100         select CRYPTO_HMAC
101         select CRYPTO_SEQIV
102         select CRYPTO_SHA256
103
104 config XFRM_IPCOMP
105         tristate
106         select XFRM_ALGO
107         select CRYPTO
108         select CRYPTO_DEFLATE
109
110 config NET_KEY
111         tristate "PF_KEY sockets"
112         select XFRM_ALGO
113         help
114           PF_KEYv2 socket family, compatible to KAME ones.
115           They are required if you are going to use IPsec tools ported
116           from KAME.
117
118           Say Y unless you know what you are doing.
119
120 config NET_KEY_MIGRATE
121         bool "PF_KEY MIGRATE"
122         depends on NET_KEY
123         select XFRM_MIGRATE
124         help
125           Add a PF_KEY MIGRATE message to PF_KEYv2 socket family.
126           The PF_KEY MIGRATE message is used to dynamically update
127           locator(s) of a given IPsec security association.
128           This feature is required, for instance, in a Mobile IPv6
129           environment with IPsec configuration where mobile nodes
130           change their attachment point to the Internet.  Detail
131           information can be found in the internet-draft
132           <draft-sugimoto-mip6-pfkey-migrate>.
133
134           If unsure, say N.
135
136 config XFRM_ESPINTCP
137         bool
138
139 endif # INET