Pyrite::Providers::TPM2Direct
Inherits Pyrite::Provider < Reference < Object
Provider for standalone and embedded Linux systems with direct TPM 2.0 access via /dev/tpmrm0.
Interacts directly with the Linux kernel TPM Resource Manager (/dev/tpmrm0) using tpm2_unseal
(tpm2-tools), injecting TPM2TOOLS_TCTI=device:<device_path> into the process environment.
Prerequisites
- Physical or virtual TPM 2.0 chip exposed at
/dev/tpmrm0or/dev/tpm0. - Package
tpm2-toolsinstalled (tpm2_unsealin$PATH).
Example
provider = Pyrite::Providers::TPM2Direct.new("/dev/tpmrm0")
config = Pyrite.bootstrap!(AppConfig, provider: provider)