Kconfig 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. # SPDX-License-Identifier: GPL-2.0
  2. menuconfig ARM_CRYPTO
  3. bool "ARM Accelerated Cryptographic Algorithms"
  4. depends on ARM
  5. help
  6. Say Y here to choose from a selection of cryptographic algorithms
  7. implemented using ARM specific CPU features or instructions.
  8. if ARM_CRYPTO
  9. config CRYPTO_SHA1_ARM
  10. tristate "SHA1 digest algorithm (ARM-asm)"
  11. select CRYPTO_SHA1
  12. select CRYPTO_HASH
  13. help
  14. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
  15. using optimized ARM assembler.
  16. config CRYPTO_SHA1_ARM_NEON
  17. tristate "SHA1 digest algorithm (ARM NEON)"
  18. depends on KERNEL_MODE_NEON
  19. select CRYPTO_SHA1_ARM
  20. select CRYPTO_SHA1
  21. select CRYPTO_HASH
  22. help
  23. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
  24. using optimized ARM NEON assembly, when NEON instructions are
  25. available.
  26. config CRYPTO_SHA1_ARM_CE
  27. tristate "SHA1 digest algorithm (ARM v8 Crypto Extensions)"
  28. depends on KERNEL_MODE_NEON
  29. select CRYPTO_SHA1_ARM
  30. select CRYPTO_HASH
  31. help
  32. SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
  33. using special ARMv8 Crypto Extensions.
  34. config CRYPTO_SHA2_ARM_CE
  35. tristate "SHA-224/256 digest algorithm (ARM v8 Crypto Extensions)"
  36. depends on KERNEL_MODE_NEON
  37. select CRYPTO_SHA256_ARM
  38. select CRYPTO_HASH
  39. help
  40. SHA-256 secure hash standard (DFIPS 180-2) implemented
  41. using special ARMv8 Crypto Extensions.
  42. config CRYPTO_SHA256_ARM
  43. tristate "SHA-224/256 digest algorithm (ARM-asm and NEON)"
  44. select CRYPTO_HASH
  45. depends on !CPU_V7M
  46. help
  47. SHA-256 secure hash standard (DFIPS 180-2) implemented
  48. using optimized ARM assembler and NEON, when available.
  49. config CRYPTO_SHA512_ARM
  50. tristate "SHA-384/512 digest algorithm (ARM-asm and NEON)"
  51. select CRYPTO_HASH
  52. depends on !CPU_V7M
  53. help
  54. SHA-512 secure hash standard (DFIPS 180-2) implemented
  55. using optimized ARM assembler and NEON, when available.
  56. config CRYPTO_AES_ARM
  57. tristate "Scalar AES cipher for ARM"
  58. select CRYPTO_ALGAPI
  59. select CRYPTO_AES
  60. help
  61. Use optimized AES assembler routines for ARM platforms.
  62. config CRYPTO_AES_ARM_BS
  63. tristate "Bit sliced AES using NEON instructions"
  64. depends on KERNEL_MODE_NEON
  65. select CRYPTO_BLKCIPHER
  66. select CRYPTO_SIMD
  67. select CRYPTO_AES
  68. help
  69. Use a faster and more secure NEON based implementation of AES in CBC,
  70. CTR and XTS modes
  71. Bit sliced AES gives around 45% speedup on Cortex-A15 for CTR mode
  72. and for XTS mode encryption, CBC and XTS mode decryption speedup is
  73. around 25%. (CBC encryption speed is not affected by this driver.)
  74. This implementation does not rely on any lookup tables so it is
  75. believed to be invulnerable to cache timing attacks.
  76. config CRYPTO_AES_ARM_CE
  77. tristate "Accelerated AES using ARMv8 Crypto Extensions"
  78. depends on KERNEL_MODE_NEON
  79. select CRYPTO_BLKCIPHER
  80. select CRYPTO_SIMD
  81. help
  82. Use an implementation of AES in CBC, CTR and XTS modes that uses
  83. ARMv8 Crypto Extensions
  84. config CRYPTO_GHASH_ARM_CE
  85. tristate "PMULL-accelerated GHASH using NEON/ARMv8 Crypto Extensions"
  86. depends on KERNEL_MODE_NEON
  87. select CRYPTO_HASH
  88. select CRYPTO_CRYPTD
  89. help
  90. Use an implementation of GHASH (used by the GCM AEAD chaining mode)
  91. that uses the 64x64 to 128 bit polynomial multiplication (vmull.p64)
  92. that is part of the ARMv8 Crypto Extensions, or a slower variant that
  93. uses the vmull.p8 instruction that is part of the basic NEON ISA.
  94. config CRYPTO_CRCT10DIF_ARM_CE
  95. tristate "CRCT10DIF digest algorithm using PMULL instructions"
  96. depends on KERNEL_MODE_NEON && CRC_T10DIF
  97. select CRYPTO_HASH
  98. config CRYPTO_CRC32_ARM_CE
  99. tristate "CRC32(C) digest algorithm using CRC and/or PMULL instructions"
  100. depends on KERNEL_MODE_NEON && CRC32
  101. select CRYPTO_HASH
  102. config CRYPTO_CHACHA20_NEON
  103. tristate "NEON accelerated ChaCha20 symmetric cipher"
  104. depends on KERNEL_MODE_NEON
  105. select CRYPTO_BLKCIPHER
  106. select CRYPTO_CHACHA20
  107. endif