Kconfig 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # SPDX-License-Identifier: GPL-2.0
  2. menuconfig ARM64_CRYPTO
  3. bool "ARM64 Accelerated Cryptographic Algorithms"
  4. depends on ARM64
  5. help
  6. Say Y here to choose from a selection of cryptographic algorithms
  7. implemented using ARM64 specific CPU features or instructions.
  8. if ARM64_CRYPTO
  9. config CRYPTO_SHA256_ARM64
  10. tristate "SHA-224/SHA-256 digest algorithm for arm64"
  11. select CRYPTO_HASH
  12. config CRYPTO_SHA512_ARM64
  13. tristate "SHA-384/SHA-512 digest algorithm for arm64"
  14. select CRYPTO_HASH
  15. config CRYPTO_SHA1_ARM64_CE
  16. tristate "SHA-1 digest algorithm (ARMv8 Crypto Extensions)"
  17. depends on KERNEL_MODE_NEON
  18. select CRYPTO_HASH
  19. select CRYPTO_SHA1
  20. config CRYPTO_SHA2_ARM64_CE
  21. tristate "SHA-224/SHA-256 digest algorithm (ARMv8 Crypto Extensions)"
  22. depends on KERNEL_MODE_NEON
  23. select CRYPTO_HASH
  24. select CRYPTO_SHA256_ARM64
  25. config CRYPTO_SHA512_ARM64_CE
  26. tristate "SHA-384/SHA-512 digest algorithm (ARMv8 Crypto Extensions)"
  27. depends on KERNEL_MODE_NEON
  28. select CRYPTO_HASH
  29. select CRYPTO_SHA512_ARM64
  30. config CRYPTO_SHA3_ARM64
  31. tristate "SHA3 digest algorithm (ARMv8.2 Crypto Extensions)"
  32. depends on KERNEL_MODE_NEON
  33. select CRYPTO_HASH
  34. select CRYPTO_SHA3
  35. config CRYPTO_SM3_ARM64_CE
  36. tristate "SM3 digest algorithm (ARMv8.2 Crypto Extensions)"
  37. depends on KERNEL_MODE_NEON
  38. select CRYPTO_HASH
  39. select CRYPTO_SM3
  40. config CRYPTO_SM4_ARM64_CE
  41. tristate "SM4 symmetric cipher (ARMv8.2 Crypto Extensions)"
  42. depends on KERNEL_MODE_NEON
  43. select CRYPTO_ALGAPI
  44. select CRYPTO_SM4
  45. config CRYPTO_GHASH_ARM64_CE
  46. tristate "GHASH/AES-GCM using ARMv8 Crypto Extensions"
  47. depends on KERNEL_MODE_NEON
  48. select CRYPTO_HASH
  49. select CRYPTO_GF128MUL
  50. select CRYPTO_AES
  51. select CRYPTO_AES_ARM64
  52. config CRYPTO_CRCT10DIF_ARM64_CE
  53. tristate "CRCT10DIF digest algorithm using PMULL instructions"
  54. depends on KERNEL_MODE_NEON && CRC_T10DIF
  55. select CRYPTO_HASH
  56. config CRYPTO_CRC32_ARM64_CE
  57. tristate "CRC32 and CRC32C digest algorithms using ARMv8 extensions"
  58. depends on CRC32
  59. select CRYPTO_HASH
  60. config CRYPTO_AES_ARM64
  61. tristate "AES core cipher using scalar instructions"
  62. select CRYPTO_AES
  63. config CRYPTO_AES_ARM64_CE
  64. tristate "AES core cipher using ARMv8 Crypto Extensions"
  65. depends on ARM64 && KERNEL_MODE_NEON
  66. select CRYPTO_ALGAPI
  67. select CRYPTO_AES_ARM64
  68. config CRYPTO_AES_ARM64_CE_CCM
  69. tristate "AES in CCM mode using ARMv8 Crypto Extensions"
  70. depends on ARM64 && KERNEL_MODE_NEON
  71. select CRYPTO_ALGAPI
  72. select CRYPTO_AES_ARM64_CE
  73. select CRYPTO_AES_ARM64
  74. select CRYPTO_AEAD
  75. config CRYPTO_AES_ARM64_CE_BLK
  76. tristate "AES in ECB/CBC/CTR/XTS modes using ARMv8 Crypto Extensions"
  77. depends on KERNEL_MODE_NEON
  78. select CRYPTO_BLKCIPHER
  79. select CRYPTO_AES_ARM64_CE
  80. select CRYPTO_AES_ARM64
  81. select CRYPTO_SIMD
  82. config CRYPTO_AES_ARM64_NEON_BLK
  83. tristate "AES in ECB/CBC/CTR/XTS modes using NEON instructions"
  84. depends on KERNEL_MODE_NEON
  85. select CRYPTO_BLKCIPHER
  86. select CRYPTO_AES_ARM64
  87. select CRYPTO_AES
  88. select CRYPTO_SIMD
  89. config CRYPTO_CHACHA20_NEON
  90. tristate "NEON accelerated ChaCha20 symmetric cipher"
  91. depends on KERNEL_MODE_NEON
  92. select CRYPTO_BLKCIPHER
  93. select CRYPTO_CHACHA20
  94. config CRYPTO_AES_ARM64_BS
  95. tristate "AES in ECB/CBC/CTR/XTS modes using bit-sliced NEON algorithm"
  96. depends on KERNEL_MODE_NEON
  97. select CRYPTO_BLKCIPHER
  98. select CRYPTO_AES_ARM64_NEON_BLK
  99. select CRYPTO_AES_ARM64
  100. select CRYPTO_SIMD
  101. endif