Kconfig 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. menuconfig RT_USING_HWCRYPTO
  2. bool "Using Hardware Crypto drivers"
  3. default n
  4. if RT_USING_HWCRYPTO
  5. config RT_HWCRYPTO_DEFAULT_NAME
  6. string "Hardware crypto device name"
  7. default "hwcryto"
  8. config RT_HWCRYPTO_IV_MAX_SIZE
  9. int "IV max size"
  10. default "16"
  11. config RT_HWCRYPTO_KEYBIT_MAX_SIZE
  12. int "Key max bit length"
  13. default 256
  14. config RT_HWCRYPTO_USING_GCM
  15. bool "Using Hardware GCM"
  16. default n
  17. config RT_HWCRYPTO_USING_AES
  18. bool "Using Hardware AES"
  19. default n
  20. if RT_HWCRYPTO_USING_AES
  21. config RT_HWCRYPTO_USING_AES_ECB
  22. bool "Using Hardware AES ECB mode"
  23. default y
  24. config RT_HWCRYPTO_USING_AES_CBC
  25. bool "Using Hardware AES CBC mode"
  26. default n
  27. config RT_HWCRYPTO_USING_AES_CFB
  28. bool "Using Hardware AES CFB mode"
  29. default n
  30. config RT_HWCRYPTO_USING_AES_CTR
  31. bool "Using Hardware AES CTR mode"
  32. default n
  33. config RT_HWCRYPTO_USING_AES_OFB
  34. bool "Using Hardware AES OFB mode"
  35. default n
  36. endif
  37. config RT_HWCRYPTO_USING_DES
  38. bool "Using Hardware DES"
  39. default n
  40. if RT_HWCRYPTO_USING_DES
  41. config RT_HWCRYPTO_USING_DES_ECB
  42. bool "Using Hardware DES ECB mode"
  43. default y
  44. config RT_HWCRYPTO_USING_DES_CBC
  45. bool "Using Hardware DES CBC mode"
  46. default n
  47. endif
  48. config RT_HWCRYPTO_USING_3DES
  49. bool "Using Hardware 3DES"
  50. default n
  51. if RT_HWCRYPTO_USING_3DES
  52. config RT_HWCRYPTO_USING_3DES_ECB
  53. bool "Using Hardware 3DES ECB mode"
  54. default y
  55. config RT_HWCRYPTO_USING_3DES_CBC
  56. bool "Using Hardware 3DES CBC mode"
  57. default n
  58. endif
  59. config RT_HWCRYPTO_USING_RC4
  60. bool "Using Hardware RC4"
  61. default n
  62. config RT_HWCRYPTO_USING_MD5
  63. bool "Using Hardware MD5"
  64. default n
  65. config RT_HWCRYPTO_USING_SHA1
  66. bool "Using Hardware SHA1"
  67. default n
  68. config RT_HWCRYPTO_USING_SHA2
  69. bool "Using Hardware SHA2"
  70. default n
  71. if RT_HWCRYPTO_USING_SHA2
  72. config RT_HWCRYPTO_USING_SHA2_224
  73. bool "Using Hardware SHA2_224 mode"
  74. default n
  75. config RT_HWCRYPTO_USING_SHA2_256
  76. bool "Using Hardware SHA2_256 mode"
  77. default y
  78. config RT_HWCRYPTO_USING_SHA2_384
  79. bool "Using Hardware SHA2_384 mode"
  80. default n
  81. config RT_HWCRYPTO_USING_SHA2_512
  82. bool "Using Hardware SHA2_512 mode"
  83. default n
  84. endif
  85. config RT_HWCRYPTO_USING_RNG
  86. bool "Using Hardware RNG"
  87. default n
  88. config RT_HWCRYPTO_USING_CRC
  89. bool "Using Hardware CRC"
  90. default n
  91. if RT_HWCRYPTO_USING_CRC
  92. config RT_HWCRYPTO_USING_CRC_07
  93. bool "Using Hardware CRC-8 0x07 polynomial"
  94. default n
  95. config RT_HWCRYPTO_USING_CRC_8005
  96. bool "Using Hardware CRC-16 0x8005 polynomial"
  97. default n
  98. config RT_HWCRYPTO_USING_CRC_1021
  99. bool "Using Hardware CRC-16 0x1021 polynomial"
  100. default n
  101. config RT_HWCRYPTO_USING_CRC_3D65
  102. bool "Using Hardware CRC-16 0x3D65 polynomial"
  103. default n
  104. config RT_HWCRYPTO_USING_CRC_04C11DB7
  105. bool "Using Hardware CRC-32 0x04C11DB7 polynomial"
  106. default n
  107. endif
  108. config RT_HWCRYPTO_USING_BIGNUM
  109. bool "Using Hardware bignum"
  110. default n
  111. if RT_HWCRYPTO_USING_BIGNUM
  112. config RT_HWCRYPTO_USING_BIGNUM_EXPTMOD
  113. bool "Using Hardware bignum expt_mod operation"
  114. default y
  115. config RT_HWCRYPTO_USING_BIGNUM_MULMOD
  116. bool "Using Hardware bignum mul_mod operation"
  117. default y
  118. config RT_HWCRYPTO_USING_BIGNUM_MUL
  119. bool "Using Hardware bignum mul operation"
  120. default n
  121. config RT_HWCRYPTO_USING_BIGNUM_ADD
  122. bool "Using Hardware bignum add operation"
  123. default n
  124. config RT_HWCRYPTO_USING_BIGNUM_SUB
  125. bool "Using Hardware bignum sub operation"
  126. default n
  127. endif
  128. endif