You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.8 KiB

  1. if PACKAGE_libopenssl-afalg_sync
  2. comment "Build Options"
  3. config AFALG_DIGESTS
  4. bool "Build support for digest acceleration"
  5. help
  6. Digests are fast in software, and accessing AF_ALG adds latency, so
  7. you'll need a large request (16KB) just to match software speed.
  8. This increases memory usage, and has problems when process fork
  9. with open digest contexts (openssh will not work because of it).
  10. config AFALG_FALLBACK
  11. bool "Enable software fallback feature"
  12. default y
  13. help
  14. Use software to fulfill small requests. Using AF_ALG adds latency,
  15. which makes it slow to perform small requests. Enabling this
  16. option overcomes this problem, at the cost of increased memory
  17. and CPU usage. This is a new, experimental feature; if you
  18. encounter any problem, this is the first option to disable.
  19. The fallback will fail if you enable this engine alongside
  20. devcrypto, so you'll not be able to install both at the same
  21. time if this option is enabled.
  22. config AFALG_UPDATE_CTR_IV
  23. bool "Don't rely on kernel to update CTR IV"
  24. default y
  25. help
  26. Don't count on the kernel driver to update the CTR-mode counter
  27. (IV). At least one driver does not update the IV as a workaround
  28. for DMA issues. With this option turned on, the engine will keep
  29. track of the counter, and the IV will be sent with every update.
  30. If fallback is enabled, then the counter needs to be updated by
  31. the engine anyway, and sent with the request everytime there's a
  32. switch from software to hardware, so this won't bring much gain in
  33. that case.
  34. config AFALG_ZERO_COPY
  35. bool "Use Zero-Copy Mode"
  36. help
  37. Uses a Zero-Copy interface. Even though it is supposed to improve
  38. performance, actual measurements indicate otherwise.
  39. endif