Kconfig 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. #
  2. # Key management configuration
  3. #
  4. config KEYS
  5. bool "Enable access key retention support"
  6. select ASSOCIATIVE_ARRAY
  7. help
  8. This option provides support for retaining authentication tokens and
  9. access keys in the kernel.
  10. It also includes provision of methods by which such keys might be
  11. associated with a process so that network filesystems, encryption
  12. support and the like can find them.
  13. Furthermore, a special type of key is available that acts as keyring:
  14. a searchable sequence of keys. Each process is equipped with access
  15. to five standard keyrings: UID-specific, GID-specific, session,
  16. process and thread.
  17. If you are unsure as to whether this is required, answer N.
  18. config PERSISTENT_KEYRINGS
  19. bool "Enable register of persistent per-UID keyrings"
  20. depends on KEYS
  21. help
  22. This option provides a register of persistent per-UID keyrings,
  23. primarily aimed at Kerberos key storage. The keyrings are persistent
  24. in the sense that they stay around after all processes of that UID
  25. have exited, not that they survive the machine being rebooted.
  26. A particular keyring may be accessed by either the user whose keyring
  27. it is or by a process with administrative privileges. The active
  28. LSMs gets to rule on which admin-level processes get to access the
  29. cache.
  30. Keyrings are created and added into the register upon demand and get
  31. removed if they expire (a default timeout is set upon creation).
  32. config BIG_KEYS
  33. bool "Large payload keys"
  34. depends on KEYS
  35. depends on TMPFS
  36. depends on (CRYPTO_ANSI_CPRNG = y || CRYPTO_DRBG = y)
  37. select CRYPTO_AES
  38. select CRYPTO_ECB
  39. select CRYPTO_RNG
  40. help
  41. This option provides support for holding large keys within the kernel
  42. (for example Kerberos ticket caches). The data may be stored out to
  43. swapspace by tmpfs.
  44. If you are unsure as to whether this is required, answer N.
  45. config TRUSTED_KEYS
  46. tristate "TRUSTED KEYS"
  47. depends on KEYS && TCG_TPM
  48. select CRYPTO
  49. select CRYPTO_HMAC
  50. select CRYPTO_SHA1
  51. select CRYPTO_HASH_INFO
  52. help
  53. This option provides support for creating, sealing, and unsealing
  54. keys in the kernel. Trusted keys are random number symmetric keys,
  55. generated and RSA-sealed by the TPM. The TPM only unseals the keys,
  56. if the boot PCRs and other criteria match. Userspace will only ever
  57. see encrypted blobs.
  58. If you are unsure as to whether this is required, answer N.
  59. config ENCRYPTED_KEYS
  60. tristate "ENCRYPTED KEYS"
  61. depends on KEYS
  62. select CRYPTO
  63. select CRYPTO_HMAC
  64. select CRYPTO_AES
  65. select CRYPTO_CBC
  66. select CRYPTO_SHA256
  67. select CRYPTO_RNG
  68. help
  69. This option provides support for create/encrypting/decrypting keys
  70. in the kernel. Encrypted keys are kernel generated random numbers,
  71. which are encrypted/decrypted with a 'master' symmetric key. The
  72. 'master' key can be either a trusted-key or user-key type.
  73. Userspace only ever sees/stores encrypted blobs.
  74. If you are unsure as to whether this is required, answer N.
  75. config KEY_DH_OPERATIONS
  76. bool "Diffie-Hellman operations on retained keys"
  77. depends on KEYS
  78. select MPILIB
  79. help
  80. This option provides support for calculating Diffie-Hellman
  81. public keys and shared secrets using values stored as keys
  82. in the kernel.
  83. If you are unsure as to whether this is required, answer N.