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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PEM

type PEM struct {
	crypto.Signer
	crypto.Decrypter

	ExtTLSConfig *tls.Config

	PublicCertFile string
	PublicPEMFile  string
	PrivatePEMFile string
	// contains filtered or unexported fields
}

func NewPEMCrypto

func NewPEMCrypto(conf *PEM) (PEM, error)

func (PEM) Decrypt

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

func (PEM) Public

func (t PEM) Public() crypto.PublicKey

func (PEM) Sign

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

func (PEM) TLSCertificate

func (t PEM) TLSCertificate() tls.Certificate

func (PEM) TLSConfig

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

Jump to

Keyboard shortcuts

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