Kconfig 3.4 KB

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