Documentation
¶
Overview ¶
Package tpm is the client's one door to the platform TPM 2.0. It opens the device and turns TPM-held key files into signers; every operation opens the TPM, runs and closes it, so no handle outlives a call.
Index ¶
Constants ¶
View Source
const DeviceEnv = "NB_TPM_DEVICE"
DeviceEnv overrides the TPM device path, which also lets tests point at a swtpm socket.
View Source
const KeyPEMType = "TSS2 PRIVATE KEY"
KeyPEMType is the PEM block type of a TPM 2.0 key file as defined by draft-bottomley-tpm2-keys and written by tpm2-openssl and tpm2-tss-engine.
Variables ¶
View Source
var ErrKeyNeedsAuth = errors.New("TPM key requires an authorization value")
View Source
var ErrUnsupported = errors.New("TPM is not supported on this platform")
Functions ¶
func Open ¶
func Open() (io.ReadWriteCloser, error)
Open connects to the platform TPM 2.0. The caller closes it after one operation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.