Documentation ¶
Index ¶
- type TPM
- func (t *TPM) Close() error
- func (t *TPM) Decrypt(rand io.Reader, msg []byte, opts crypto.DecrypterOpts) ([]byte, error)
- func (t *TPM) Public() crypto.PublicKey
- func (t *TPM) Sign(_ io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)
- func (t *TPM) TLSCertificate() tls.Certificate
- func (t *TPM) TLSConfig() *tls.Config
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 (*TPM) TLSCertificate ¶
func (t *TPM) TLSCertificate() tls.Certificate
Click to show internal directories.
Click to hide internal directories.