tpm

package module
v0.0.0-...-64ade09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TPM

type TPM struct {
	crypto.Signer

	Key          *client.Key        // load a key from handle
	TpmDevice    io.ReadWriteCloser // TPM read closer
	TpmPath      string             // path to the ptm device /dev/tpm0
	KeyHandle    uint32             // path to the ptm device /dev/tpm0
	ECCRawOutput bool               // for ECC keys, output raw signatures. If false, signature is ans1 formatted

	PublicCertFile string      // a provided public x509 certificate for the signer
	ExtTLSConfig   *tls.Config // override tls.Config values
	PCRs           []int
	// contains filtered or unexported fields
}

func NewTPMCrypto

func NewTPMCrypto(conf *TPM) (TPM, error)

func (TPM) Public

func (t TPM) Public() crypto.PublicKey

func (TPM) Sign

func (t TPM) Sign(rr io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)

func (TPM) TLSCertificate

func (t TPM) TLSCertificate() tls.Certificate

func (TPM) TLSConfig

func (t TPM) TLSConfig() *tls.Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL