Kconfig 3.4 KB

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