tpm

package
v0.0.0-...-05fd942 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 14 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
	crypto.Decrypter

	PublicCertFile string
	ExtTLSConfig   *tls.Config

	TpmHandleFile string
	TpmHandle     uint32
	TpmDevice     string
	// contains filtered or unexported fields
}

func NewTPMCrypto

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

func (*TPM) Close

func (t *TPM) Close() error

func (*TPM) Decrypt

func (t *TPM) Decrypt(rand io.Reader, msg []byte, opts crypto.DecrypterOpts) ([]byte, error)

func (*TPM) Public

func (t *TPM) Public() crypto.PublicKey

func (*TPM) Sign

func (t *TPM) Sign(_ 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