Kconfig 3.6 KB

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