Versions in this module Expand all Collapse all v0 v0.0.1 Feb 7, 2024 Changes in this version + const EK_CERT_INDEX + const TPM_PATH + func DecCredAES(srcA, srcC, secret, iv []byte) ([]byte, []byte, error) + func EncCredAES(srcA, srcC, secret, iv []byte) ([]byte, []byte, error) + func MakeCred(aik *legacy.HashValue, pub crypto.PublicKey, symBlockSize int, secret []byte) ([]byte, []byte, error) + type PublicParams struct + type TPM struct + func OpenTPM(password []byte, path string) (*TPM, error) + func (tpm *TPM) ActivateCredential(ekHandle *tpm2.AuthHandle, srkHandle *tpm2.NamedHandle, ...) ([]byte, error) + func (tpm *TPM) Close() + func (tpm *TPM) Commit(handle *tpm2.AuthHandle, P1_ECP *FP256BN.ECP, S2_bytes []byte, P2 *FP256BN.ECP) (*tpm2.CommitResponse, *FP256BN.ECP, *FP256BN.ECP, *FP256BN.ECP, error) + func (tpm *TPM) CreateKey() (*tpm2.AuthHandle, *tpm2.AuthHandle, *tpm2.NamedHandle, *tpm2.TPM2BPublic, ...) + func (tpm *TPM) ReadEKCert() (*x509.Certificate, error) + func (tpm *TPM) Sign(digest []byte, count uint16, handle *tpm2.AuthHandle) (*tpm2.SignResponse, *FP256BN.BIG, *FP256BN.BIG, error)