package
Version:
v0.0.0-...-48d3841
Opens a new window with list of versions in this module.
Published: Jan 28, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package tpm implements TPM2 API to seal and Unseal data.
-
func Seal(tpmPath string, pcr int, srkPassword, objectPassword string, dataToSeal []byte) ([]byte, []byte, error)
-
func Unseal(tpmPath string, pcr int, srkPassword, objectPassword string, ...) ([]byte, error)
Seal seals supplied data to TPM using PCRs and password.
Unseal unseals data from TPM based on PCRs and password defined by the polic attached to the protected object.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.