Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. # SPDX-License-Identifier: GPL-2.0
  2. menu "Accelerated Cryptographic Algorithms for CPU (x86)"
  3. config CRYPTO_CURVE25519_X86
  4. tristate "Public key crypto: Curve25519 (ADX)"
  5. depends on X86 && 64BIT
  6. select CRYPTO_LIB_CURVE25519_GENERIC
  7. select CRYPTO_ARCH_HAVE_LIB_CURVE25519
  8. help
  9. Curve25519 algorithm
  10. Architecture: x86_64 using:
  11. - ADX (large integer arithmetic)
  12. config CRYPTO_AES_NI_INTEL
  13. tristate "Ciphers: AES, modes: ECB, CBC, CTS, CTR, XTR, XTS, GCM (AES-NI)"
  14. depends on X86
  15. select CRYPTO_AEAD
  16. select CRYPTO_LIB_AES
  17. select CRYPTO_ALGAPI
  18. select CRYPTO_SKCIPHER
  19. select CRYPTO_SIMD
  20. help
  21. Block cipher: AES cipher algorithms
  22. AEAD cipher: AES with GCM
  23. Length-preserving ciphers: AES with ECB, CBC, CTS, CTR, XTR, XTS
  24. Architecture: x86 (32-bit and 64-bit) using:
  25. - AES-NI (AES new instructions)
  26. config CRYPTO_BLOWFISH_X86_64
  27. tristate "Ciphers: Blowfish, modes: ECB, CBC"
  28. depends on X86 && 64BIT
  29. select CRYPTO_SKCIPHER
  30. select CRYPTO_BLOWFISH_COMMON
  31. imply CRYPTO_CTR
  32. help
  33. Block cipher: Blowfish cipher algorithm
  34. Length-preserving ciphers: Blowfish with ECB and CBC modes
  35. Architecture: x86_64
  36. config CRYPTO_CAMELLIA_X86_64
  37. tristate "Ciphers: Camellia with modes: ECB, CBC"
  38. depends on X86 && 64BIT
  39. select CRYPTO_SKCIPHER
  40. imply CRYPTO_CTR
  41. help
  42. Block cipher: Camellia cipher algorithms
  43. Length-preserving ciphers: Camellia with ECB and CBC modes
  44. Architecture: x86_64
  45. config CRYPTO_CAMELLIA_AESNI_AVX_X86_64
  46. tristate "Ciphers: Camellia with modes: ECB, CBC (AES-NI/AVX)"
  47. depends on X86 && 64BIT
  48. select CRYPTO_SKCIPHER
  49. select CRYPTO_CAMELLIA_X86_64
  50. select CRYPTO_SIMD
  51. imply CRYPTO_XTS
  52. help
  53. Length-preserving ciphers: Camellia with ECB and CBC modes
  54. Architecture: x86_64 using:
  55. - AES-NI (AES New Instructions)
  56. - AVX (Advanced Vector Extensions)
  57. config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64
  58. tristate "Ciphers: Camellia with modes: ECB, CBC (AES-NI/AVX2)"
  59. depends on X86 && 64BIT
  60. select CRYPTO_CAMELLIA_AESNI_AVX_X86_64
  61. help
  62. Length-preserving ciphers: Camellia with ECB and CBC modes
  63. Architecture: x86_64 using:
  64. - AES-NI (AES New Instructions)
  65. - AVX2 (Advanced Vector Extensions 2)
  66. config CRYPTO_CAST5_AVX_X86_64
  67. tristate "Ciphers: CAST5 with modes: ECB, CBC (AVX)"
  68. depends on X86 && 64BIT
  69. select CRYPTO_SKCIPHER
  70. select CRYPTO_CAST5
  71. select CRYPTO_CAST_COMMON
  72. select CRYPTO_SIMD
  73. imply CRYPTO_CTR
  74. help
  75. Length-preserving ciphers: CAST5 (CAST-128) cipher algorithm
  76. (RFC2144) with ECB and CBC modes
  77. Architecture: x86_64 using:
  78. - AVX (Advanced Vector Extensions)
  79. Processes 16 blocks in parallel.
  80. config CRYPTO_CAST6_AVX_X86_64
  81. tristate "Ciphers: CAST6 with modes: ECB, CBC (AVX)"
  82. depends on X86 && 64BIT
  83. select CRYPTO_SKCIPHER
  84. select CRYPTO_CAST6
  85. select CRYPTO_CAST_COMMON
  86. select CRYPTO_SIMD
  87. imply CRYPTO_XTS
  88. imply CRYPTO_CTR
  89. help
  90. Length-preserving ciphers: CAST6 (CAST-256) cipher algorithm
  91. (RFC2612) with ECB and CBC modes
  92. Architecture: x86_64 using:
  93. - AVX (Advanced Vector Extensions)
  94. Processes eight blocks in parallel.
  95. config CRYPTO_DES3_EDE_X86_64
  96. tristate "Ciphers: Triple DES EDE with modes: ECB, CBC"
  97. depends on X86 && 64BIT
  98. select CRYPTO_SKCIPHER
  99. select CRYPTO_LIB_DES
  100. imply CRYPTO_CTR
  101. help
  102. Block cipher: Triple DES EDE (FIPS 46-3) cipher algorithm
  103. Length-preserving ciphers: Triple DES EDE with ECB and CBC modes
  104. Architecture: x86_64
  105. Processes one or three blocks in parallel.
  106. config CRYPTO_SERPENT_SSE2_X86_64
  107. tristate "Ciphers: Serpent with modes: ECB, CBC (SSE2)"
  108. depends on X86 && 64BIT
  109. select CRYPTO_SKCIPHER
  110. select CRYPTO_SERPENT
  111. select CRYPTO_SIMD
  112. imply CRYPTO_CTR
  113. help
  114. Length-preserving ciphers: Serpent cipher algorithm
  115. with ECB and CBC modes
  116. Architecture: x86_64 using:
  117. - SSE2 (Streaming SIMD Extensions 2)
  118. Processes eight blocks in parallel.
  119. config CRYPTO_SERPENT_SSE2_586
  120. tristate "Ciphers: Serpent with modes: ECB, CBC (32-bit with SSE2)"
  121. depends on X86 && !64BIT
  122. select CRYPTO_SKCIPHER
  123. select CRYPTO_SERPENT
  124. select CRYPTO_SIMD
  125. imply CRYPTO_CTR
  126. help
  127. Length-preserving ciphers: Serpent cipher algorithm
  128. with ECB and CBC modes
  129. Architecture: x86 (32-bit) using:
  130. - SSE2 (Streaming SIMD Extensions 2)
  131. Processes four blocks in parallel.
  132. config CRYPTO_SERPENT_AVX_X86_64
  133. tristate "Ciphers: Serpent with modes: ECB, CBC (AVX)"
  134. depends on X86 && 64BIT
  135. select CRYPTO_SKCIPHER
  136. select CRYPTO_SERPENT
  137. select CRYPTO_SIMD
  138. imply CRYPTO_XTS
  139. imply CRYPTO_CTR
  140. help
  141. Length-preserving ciphers: Serpent cipher algorithm
  142. with ECB and CBC modes
  143. Architecture: x86_64 using:
  144. - AVX (Advanced Vector Extensions)
  145. Processes eight blocks in parallel.
  146. config CRYPTO_SERPENT_AVX2_X86_64
  147. tristate "Ciphers: Serpent with modes: ECB, CBC (AVX2)"
  148. depends on X86 && 64BIT
  149. select CRYPTO_SERPENT_AVX_X86_64
  150. help
  151. Length-preserving ciphers: Serpent cipher algorithm
  152. with ECB and CBC modes
  153. Architecture: x86_64 using:
  154. - AVX2 (Advanced Vector Extensions 2)
  155. Processes 16 blocks in parallel.
  156. config CRYPTO_SM4_AESNI_AVX_X86_64
  157. tristate "Ciphers: SM4 with modes: ECB, CBC, CFB, CTR (AES-NI/AVX)"
  158. depends on X86 && 64BIT
  159. select CRYPTO_SKCIPHER
  160. select CRYPTO_SIMD
  161. select CRYPTO_ALGAPI
  162. select CRYPTO_SM4
  163. help
  164. Length-preserving ciphers: SM4 cipher algorithms
  165. (OSCCA GB/T 32907-2016) with ECB, CBC, CFB, and CTR modes
  166. Architecture: x86_64 using:
  167. - AES-NI (AES New Instructions)
  168. - AVX (Advanced Vector Extensions)
  169. Through two affine transforms,
  170. we can use the AES S-Box to simulate the SM4 S-Box to achieve the
  171. effect of instruction acceleration.
  172. If unsure, say N.
  173. config CRYPTO_SM4_AESNI_AVX2_X86_64
  174. tristate "Ciphers: SM4 with modes: ECB, CBC, CFB, CTR (AES-NI/AVX2)"
  175. depends on X86 && 64BIT
  176. select CRYPTO_SKCIPHER
  177. select CRYPTO_SIMD
  178. select CRYPTO_ALGAPI
  179. select CRYPTO_SM4
  180. select CRYPTO_SM4_AESNI_AVX_X86_64
  181. help
  182. Length-preserving ciphers: SM4 cipher algorithms
  183. (OSCCA GB/T 32907-2016) with ECB, CBC, CFB, and CTR modes
  184. Architecture: x86_64 using:
  185. - AES-NI (AES New Instructions)
  186. - AVX2 (Advanced Vector Extensions 2)
  187. Through two affine transforms,
  188. we can use the AES S-Box to simulate the SM4 S-Box to achieve the
  189. effect of instruction acceleration.
  190. If unsure, say N.
  191. config CRYPTO_TWOFISH_586
  192. tristate "Ciphers: Twofish (32-bit)"
  193. depends on (X86 || UML_X86) && !64BIT
  194. select CRYPTO_ALGAPI
  195. select CRYPTO_TWOFISH_COMMON
  196. imply CRYPTO_CTR
  197. help
  198. Block cipher: Twofish cipher algorithm
  199. Architecture: x86 (32-bit)
  200. config CRYPTO_TWOFISH_X86_64
  201. tristate "Ciphers: Twofish"
  202. depends on (X86 || UML_X86) && 64BIT
  203. select CRYPTO_ALGAPI
  204. select CRYPTO_TWOFISH_COMMON
  205. imply CRYPTO_CTR
  206. help
  207. Block cipher: Twofish cipher algorithm
  208. Architecture: x86_64
  209. config CRYPTO_TWOFISH_X86_64_3WAY
  210. tristate "Ciphers: Twofish with modes: ECB, CBC (3-way parallel)"
  211. depends on X86 && 64BIT
  212. select CRYPTO_SKCIPHER
  213. select CRYPTO_TWOFISH_COMMON
  214. select CRYPTO_TWOFISH_X86_64
  215. help
  216. Length-preserving cipher: Twofish cipher algorithm
  217. with ECB and CBC modes
  218. Architecture: x86_64
  219. Processes three blocks in parallel, better utilizing resources of
  220. out-of-order CPUs.
  221. config CRYPTO_TWOFISH_AVX_X86_64
  222. tristate "Ciphers: Twofish with modes: ECB, CBC (AVX)"
  223. depends on X86 && 64BIT
  224. select CRYPTO_SKCIPHER
  225. select CRYPTO_SIMD
  226. select CRYPTO_TWOFISH_COMMON
  227. select CRYPTO_TWOFISH_X86_64
  228. select CRYPTO_TWOFISH_X86_64_3WAY
  229. imply CRYPTO_XTS
  230. help
  231. Length-preserving cipher: Twofish cipher algorithm
  232. with ECB and CBC modes
  233. Architecture: x86_64 using:
  234. - AVX (Advanced Vector Extensions)
  235. Processes eight blocks in parallel.
  236. config CRYPTO_ARIA_AESNI_AVX_X86_64
  237. tristate "Ciphers: ARIA with modes: ECB, CTR (AES-NI/AVX/GFNI)"
  238. depends on X86 && 64BIT
  239. select CRYPTO_SKCIPHER
  240. select CRYPTO_SIMD
  241. select CRYPTO_ALGAPI
  242. select CRYPTO_ARIA
  243. help
  244. Length-preserving cipher: ARIA cipher algorithms
  245. (RFC 5794) with ECB and CTR modes
  246. Architecture: x86_64 using:
  247. - AES-NI (AES New Instructions)
  248. - AVX (Advanced Vector Extensions)
  249. - GFNI (Galois Field New Instructions)
  250. Processes 16 blocks in parallel.
  251. config CRYPTO_CHACHA20_X86_64
  252. tristate "Ciphers: ChaCha20, XChaCha20, XChaCha12 (SSSE3/AVX2/AVX-512VL)"
  253. depends on X86 && 64BIT
  254. select CRYPTO_SKCIPHER
  255. select CRYPTO_LIB_CHACHA_GENERIC
  256. select CRYPTO_ARCH_HAVE_LIB_CHACHA
  257. help
  258. Length-preserving ciphers: ChaCha20, XChaCha20, and XChaCha12
  259. stream cipher algorithms
  260. Architecture: x86_64 using:
  261. - SSSE3 (Supplemental SSE3)
  262. - AVX2 (Advanced Vector Extensions 2)
  263. - AVX-512VL (Advanced Vector Extensions-512VL)
  264. config CRYPTO_AEGIS128_AESNI_SSE2
  265. tristate "AEAD ciphers: AEGIS-128 (AES-NI/SSE2)"
  266. depends on X86 && 64BIT
  267. select CRYPTO_AEAD
  268. select CRYPTO_SIMD
  269. help
  270. AEGIS-128 AEAD algorithm
  271. Architecture: x86_64 using:
  272. - AES-NI (AES New Instructions)
  273. - SSE2 (Streaming SIMD Extensions 2)
  274. config CRYPTO_NHPOLY1305_SSE2
  275. tristate "Hash functions: NHPoly1305 (SSE2)"
  276. depends on X86 && 64BIT
  277. select CRYPTO_NHPOLY1305
  278. help
  279. NHPoly1305 hash function for Adiantum
  280. Architecture: x86_64 using:
  281. - SSE2 (Streaming SIMD Extensions 2)
  282. config CRYPTO_NHPOLY1305_AVX2
  283. tristate "Hash functions: NHPoly1305 (AVX2)"
  284. depends on X86 && 64BIT
  285. select CRYPTO_NHPOLY1305
  286. help
  287. NHPoly1305 hash function for Adiantum
  288. Architecture: x86_64 using:
  289. - AVX2 (Advanced Vector Extensions 2)
  290. config CRYPTO_BLAKE2S_X86
  291. bool "Hash functions: BLAKE2s (SSSE3/AVX-512)"
  292. depends on X86 && 64BIT
  293. select CRYPTO_LIB_BLAKE2S_GENERIC
  294. select CRYPTO_ARCH_HAVE_LIB_BLAKE2S
  295. help
  296. BLAKE2s cryptographic hash function (RFC 7693)
  297. Architecture: x86_64 using:
  298. - SSSE3 (Supplemental SSE3)
  299. - AVX-512 (Advanced Vector Extensions-512)
  300. config CRYPTO_POLYVAL_CLMUL_NI
  301. tristate "Hash functions: POLYVAL (CLMUL-NI)"
  302. depends on X86 && 64BIT
  303. select CRYPTO_POLYVAL
  304. help
  305. POLYVAL hash function for HCTR2
  306. Architecture: x86_64 using:
  307. - CLMUL-NI (carry-less multiplication new instructions)
  308. config CRYPTO_POLY1305_X86_64
  309. tristate "Hash functions: Poly1305 (SSE2/AVX2)"
  310. depends on X86 && 64BIT
  311. select CRYPTO_LIB_POLY1305_GENERIC
  312. select CRYPTO_ARCH_HAVE_LIB_POLY1305
  313. help
  314. Poly1305 authenticator algorithm (RFC7539)
  315. Architecture: x86_64 using:
  316. - SSE2 (Streaming SIMD Extensions 2)
  317. - AVX2 (Advanced Vector Extensions 2)
  318. config CRYPTO_SHA1_SSSE3
  319. tristate "Hash functions: SHA-1 (SSSE3/AVX/AVX2/SHA-NI)"
  320. depends on X86 && 64BIT
  321. select CRYPTO_SHA1
  322. select CRYPTO_HASH
  323. help
  324. SHA-1 secure hash algorithm (FIPS 180)
  325. Architecture: x86_64 using:
  326. - SSSE3 (Supplemental SSE3)
  327. - AVX (Advanced Vector Extensions)
  328. - AVX2 (Advanced Vector Extensions 2)
  329. - SHA-NI (SHA Extensions New Instructions)
  330. config CRYPTO_SHA256_SSSE3
  331. tristate "Hash functions: SHA-224 and SHA-256 (SSSE3/AVX/AVX2/SHA-NI)"
  332. depends on X86 && 64BIT
  333. select CRYPTO_SHA256
  334. select CRYPTO_HASH
  335. help
  336. SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
  337. Architecture: x86_64 using:
  338. - SSSE3 (Supplemental SSE3)
  339. - AVX (Advanced Vector Extensions)
  340. - AVX2 (Advanced Vector Extensions 2)
  341. - SHA-NI (SHA Extensions New Instructions)
  342. config CRYPTO_SHA512_SSSE3
  343. tristate "Hash functions: SHA-384 and SHA-512 (SSSE3/AVX/AVX2)"
  344. depends on X86 && 64BIT
  345. select CRYPTO_SHA512
  346. select CRYPTO_HASH
  347. help
  348. SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
  349. Architecture: x86_64 using:
  350. - SSSE3 (Supplemental SSE3)
  351. - AVX (Advanced Vector Extensions)
  352. - AVX2 (Advanced Vector Extensions 2)
  353. config CRYPTO_SM3_AVX_X86_64
  354. tristate "Hash functions: SM3 (AVX)"
  355. depends on X86 && 64BIT
  356. select CRYPTO_HASH
  357. select CRYPTO_SM3
  358. help
  359. SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3
  360. Architecture: x86_64 using:
  361. - AVX (Advanced Vector Extensions)
  362. If unsure, say N.
  363. config CRYPTO_GHASH_CLMUL_NI_INTEL
  364. tristate "Hash functions: GHASH (CLMUL-NI)"
  365. depends on X86 && 64BIT
  366. select CRYPTO_CRYPTD
  367. help
  368. GCM GHASH hash function (NIST SP800-38D)
  369. Architecture: x86_64 using:
  370. - CLMUL-NI (carry-less multiplication new instructions)
  371. config CRYPTO_CRC32C_INTEL
  372. tristate "CRC32c (SSE4.2/PCLMULQDQ)"
  373. depends on X86
  374. select CRYPTO_HASH
  375. help
  376. CRC32c CRC algorithm with the iSCSI polynomial (RFC 3385 and RFC 3720)
  377. Architecture: x86 (32-bit and 64-bit) using:
  378. - SSE4.2 (Streaming SIMD Extensions 4.2) CRC32 instruction
  379. - PCLMULQDQ (carry-less multiplication)
  380. config CRYPTO_CRC32_PCLMUL
  381. tristate "CRC32 (PCLMULQDQ)"
  382. depends on X86
  383. select CRYPTO_HASH
  384. select CRC32
  385. help
  386. CRC32 CRC algorithm (IEEE 802.3)
  387. Architecture: x86 (32-bit and 64-bit) using:
  388. - PCLMULQDQ (carry-less multiplication)
  389. config CRYPTO_CRCT10DIF_PCLMUL
  390. tristate "CRCT10DIF (PCLMULQDQ)"
  391. depends on X86 && 64BIT && CRC_T10DIF
  392. select CRYPTO_HASH
  393. help
  394. CRC16 CRC algorithm used for the T10 (SCSI) Data Integrity Field (DIF)
  395. Architecture: x86_64 using:
  396. - PCLMULQDQ (carry-less multiplication)
  397. endmenu