Kconfig 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. # SPDX-License-Identifier: GPL-2.0
  2. menu "Accelerated Cryptographic Algorithms for CPU (arm)"
  3. config CRYPTO_CURVE25519_NEON
  4. tristate "Public key crypto: Curve25519 (NEON)"
  5. depends on KERNEL_MODE_NEON
  6. select CRYPTO_LIB_CURVE25519_GENERIC
  7. select CRYPTO_ARCH_HAVE_LIB_CURVE25519
  8. help
  9. Curve25519 algorithm
  10. Architecture: arm with
  11. - NEON (Advanced SIMD) extensions
  12. config CRYPTO_GHASH_ARM_CE
  13. tristate "Hash functions: GHASH (PMULL/NEON/ARMv8 Crypto Extensions)"
  14. depends on KERNEL_MODE_NEON
  15. select CRYPTO_HASH
  16. select CRYPTO_CRYPTD
  17. select CRYPTO_GF128MUL
  18. help
  19. GCM GHASH function (NIST SP800-38D)
  20. Architecture: arm using
  21. - PMULL (Polynomial Multiply Long) instructions
  22. - NEON (Advanced SIMD) extensions
  23. - ARMv8 Crypto Extensions
  24. Use an implementation of GHASH (used by the GCM AEAD chaining mode)
  25. that uses the 64x64 to 128 bit polynomial multiplication (vmull.p64)
  26. that is part of the ARMv8 Crypto Extensions, or a slower variant that
  27. uses the vmull.p8 instruction that is part of the basic NEON ISA.
  28. config CRYPTO_NHPOLY1305_NEON
  29. tristate "Hash functions: NHPoly1305 (NEON)"
  30. depends on KERNEL_MODE_NEON
  31. select CRYPTO_NHPOLY1305
  32. help
  33. NHPoly1305 hash function (Adiantum)
  34. Architecture: arm using:
  35. - NEON (Advanced SIMD) extensions
  36. config CRYPTO_POLY1305_ARM
  37. tristate "Hash functions: Poly1305 (NEON)"
  38. select CRYPTO_HASH
  39. select CRYPTO_ARCH_HAVE_LIB_POLY1305
  40. help
  41. Poly1305 authenticator algorithm (RFC7539)
  42. Architecture: arm optionally using
  43. - NEON (Advanced SIMD) extensions
  44. config CRYPTO_BLAKE2S_ARM
  45. bool "Hash functions: BLAKE2s"
  46. select CRYPTO_ARCH_HAVE_LIB_BLAKE2S
  47. help
  48. BLAKE2s cryptographic hash function (RFC 7693)
  49. Architecture: arm
  50. This is faster than the generic implementations of BLAKE2s and
  51. BLAKE2b, but slower than the NEON implementation of BLAKE2b.
  52. There is no NEON implementation of BLAKE2s, since NEON doesn't
  53. really help with it.
  54. config CRYPTO_BLAKE2B_NEON
  55. tristate "Hash functions: BLAKE2b (NEON)"
  56. depends on KERNEL_MODE_NEON
  57. select CRYPTO_BLAKE2B
  58. help
  59. BLAKE2b cryptographic hash function (RFC 7693)
  60. Architecture: arm using
  61. - NEON (Advanced SIMD) extensions
  62. BLAKE2b digest algorithm optimized with ARM NEON instructions.
  63. On ARM processors that have NEON support but not the ARMv8
  64. Crypto Extensions, typically this BLAKE2b implementation is
  65. much faster than the SHA-2 family and slightly faster than
  66. SHA-1.
  67. config CRYPTO_SHA1_ARM
  68. tristate "Hash functions: SHA-1"
  69. select CRYPTO_SHA1
  70. select CRYPTO_HASH
  71. help
  72. SHA-1 secure hash algorithm (FIPS 180)
  73. Architecture: arm
  74. config CRYPTO_SHA1_ARM_NEON
  75. tristate "Hash functions: SHA-1 (NEON)"
  76. depends on KERNEL_MODE_NEON
  77. select CRYPTO_SHA1_ARM
  78. select CRYPTO_SHA1
  79. select CRYPTO_HASH
  80. help
  81. SHA-1 secure hash algorithm (FIPS 180)
  82. Architecture: arm using
  83. - NEON (Advanced SIMD) extensions
  84. config CRYPTO_SHA1_ARM_CE
  85. tristate "Hash functions: SHA-1 (ARMv8 Crypto Extensions)"
  86. depends on KERNEL_MODE_NEON
  87. select CRYPTO_SHA1_ARM
  88. select CRYPTO_HASH
  89. help
  90. SHA-1 secure hash algorithm (FIPS 180)
  91. Architecture: arm using ARMv8 Crypto Extensions
  92. config CRYPTO_SHA2_ARM_CE
  93. tristate "Hash functions: SHA-224 and SHA-256 (ARMv8 Crypto Extensions)"
  94. depends on KERNEL_MODE_NEON
  95. select CRYPTO_SHA256_ARM
  96. select CRYPTO_HASH
  97. help
  98. SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
  99. Architecture: arm using
  100. - ARMv8 Crypto Extensions
  101. config CRYPTO_SHA256_ARM
  102. tristate "Hash functions: SHA-224 and SHA-256 (NEON)"
  103. select CRYPTO_HASH
  104. depends on !CPU_V7M
  105. help
  106. SHA-224 and SHA-256 secure hash algorithms (FIPS 180)
  107. Architecture: arm using
  108. - NEON (Advanced SIMD) extensions
  109. config CRYPTO_SHA512_ARM
  110. tristate "Hash functions: SHA-384 and SHA-512 (NEON)"
  111. select CRYPTO_HASH
  112. depends on !CPU_V7M
  113. help
  114. SHA-384 and SHA-512 secure hash algorithms (FIPS 180)
  115. Architecture: arm using
  116. - NEON (Advanced SIMD) extensions
  117. config CRYPTO_AES_ARM
  118. tristate "Ciphers: AES"
  119. select CRYPTO_ALGAPI
  120. select CRYPTO_AES
  121. help
  122. Block ciphers: AES cipher algorithms (FIPS-197)
  123. Architecture: arm
  124. On ARM processors without the Crypto Extensions, this is the
  125. fastest AES implementation for single blocks. For multiple
  126. blocks, the NEON bit-sliced implementation is usually faster.
  127. This implementation may be vulnerable to cache timing attacks,
  128. since it uses lookup tables. However, as countermeasures it
  129. disables IRQs and preloads the tables; it is hoped this makes
  130. such attacks very difficult.
  131. config CRYPTO_AES_ARM_BS
  132. tristate "Ciphers: AES, modes: ECB/CBC/CTR/XTS (bit-sliced NEON)"
  133. depends on KERNEL_MODE_NEON
  134. select CRYPTO_SKCIPHER
  135. select CRYPTO_LIB_AES
  136. select CRYPTO_AES
  137. select CRYPTO_CBC
  138. select CRYPTO_SIMD
  139. help
  140. Length-preserving ciphers: AES cipher algorithms (FIPS-197)
  141. with block cipher modes:
  142. - ECB (Electronic Codebook) mode (NIST SP800-38A)
  143. - CBC (Cipher Block Chaining) mode (NIST SP800-38A)
  144. - CTR (Counter) mode (NIST SP800-38A)
  145. - XTS (XOR Encrypt XOR with ciphertext stealing) mode (NIST SP800-38E
  146. and IEEE 1619)
  147. Bit sliced AES gives around 45% speedup on Cortex-A15 for CTR mode
  148. and for XTS mode encryption, CBC and XTS mode decryption speedup is
  149. around 25%. (CBC encryption speed is not affected by this driver.)
  150. This implementation does not rely on any lookup tables so it is
  151. believed to be invulnerable to cache timing attacks.
  152. config CRYPTO_AES_ARM_CE
  153. tristate "Ciphers: AES, modes: ECB/CBC/CTS/CTR/XTS (ARMv8 Crypto Extensions)"
  154. depends on KERNEL_MODE_NEON
  155. select CRYPTO_SKCIPHER
  156. select CRYPTO_LIB_AES
  157. select CRYPTO_SIMD
  158. help
  159. Length-preserving ciphers: AES cipher algorithms (FIPS-197)
  160. with block cipher modes:
  161. - ECB (Electronic Codebook) mode (NIST SP800-38A)
  162. - CBC (Cipher Block Chaining) mode (NIST SP800-38A)
  163. - CTR (Counter) mode (NIST SP800-38A)
  164. - CTS (Cipher Text Stealing) mode (NIST SP800-38A)
  165. - XTS (XOR Encrypt XOR with ciphertext stealing) mode (NIST SP800-38E
  166. and IEEE 1619)
  167. Architecture: arm using:
  168. - ARMv8 Crypto Extensions
  169. config CRYPTO_CHACHA20_NEON
  170. tristate "Ciphers: ChaCha20, XChaCha20, XChaCha12 (NEON)"
  171. select CRYPTO_SKCIPHER
  172. select CRYPTO_ARCH_HAVE_LIB_CHACHA
  173. help
  174. Length-preserving ciphers: ChaCha20, XChaCha20, and XChaCha12
  175. stream cipher algorithms
  176. Architecture: arm using:
  177. - NEON (Advanced SIMD) extensions
  178. config CRYPTO_CRC32_ARM_CE
  179. tristate "CRC32C and CRC32"
  180. depends on KERNEL_MODE_NEON
  181. depends on CRC32
  182. select CRYPTO_HASH
  183. help
  184. CRC32c CRC algorithm with the iSCSI polynomial (RFC 3385 and RFC 3720)
  185. and CRC32 CRC algorithm (IEEE 802.3)
  186. Architecture: arm using:
  187. - CRC and/or PMULL instructions
  188. Drivers: crc32-arm-ce and crc32c-arm-ce
  189. config CRYPTO_CRCT10DIF_ARM_CE
  190. tristate "CRCT10DIF"
  191. depends on KERNEL_MODE_NEON
  192. depends on CRC_T10DIF
  193. select CRYPTO_HASH
  194. help
  195. CRC16 CRC algorithm used for the T10 (SCSI) Data Integrity Field (DIF)
  196. Architecture: arm using:
  197. - PMULL (Polynomial Multiply Long) instructions
  198. endmenu