Kconfig 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 "AES cipher algorithms (ARM-asm)"
  57. depends on ARM
  58. select CRYPTO_ALGAPI
  59. select CRYPTO_AES
  60. help
  61. Use optimized AES assembler routines for ARM platforms.
  62. AES cipher algorithms (FIPS-197). AES uses the Rijndael
  63. algorithm.
  64. Rijndael appears to be consistently a very good performer in
  65. both hardware and software across a wide range of computing
  66. environments regardless of its use in feedback or non-feedback
  67. modes. Its key setup time is excellent, and its key agility is
  68. good. Rijndael's very low memory requirements make it very well
  69. suited for restricted-space environments, in which it also
  70. demonstrates excellent performance. Rijndael's operations are
  71. among the easiest to defend against power and timing attacks.
  72. The AES specifies three key sizes: 128, 192 and 256 bits
  73. See <http://csrc.nist.gov/encryption/aes/> for more information.
  74. config CRYPTO_AES_ARM_BS
  75. tristate "Bit sliced AES using NEON instructions"
  76. depends on KERNEL_MODE_NEON
  77. select CRYPTO_ALGAPI
  78. select CRYPTO_AES_ARM
  79. select CRYPTO_ABLK_HELPER
  80. help
  81. Use a faster and more secure NEON based implementation of AES in CBC,
  82. CTR and XTS modes
  83. Bit sliced AES gives around 45% speedup on Cortex-A15 for CTR mode
  84. and for XTS mode encryption, CBC and XTS mode decryption speedup is
  85. around 25%. (CBC encryption speed is not affected by this driver.)
  86. This implementation does not rely on any lookup tables so it is
  87. believed to be invulnerable to cache timing attacks.
  88. config CRYPTO_AES_ARM_CE
  89. tristate "Accelerated AES using ARMv8 Crypto Extensions"
  90. depends on KERNEL_MODE_NEON
  91. select CRYPTO_ALGAPI
  92. select CRYPTO_ABLK_HELPER
  93. help
  94. Use an implementation of AES in CBC, CTR and XTS modes that uses
  95. ARMv8 Crypto Extensions
  96. config CRYPTO_GHASH_ARM_CE
  97. tristate "PMULL-accelerated GHASH using ARMv8 Crypto Extensions"
  98. depends on KERNEL_MODE_NEON
  99. select CRYPTO_HASH
  100. select CRYPTO_CRYPTD
  101. help
  102. Use an implementation of GHASH (used by the GCM AEAD chaining mode)
  103. that uses the 64x64 to 128 bit polynomial multiplication (vmull.p64)
  104. that is part of the ARMv8 Crypto Extensions
  105. endif