Versions in this module Expand all Collapse all v0 v0.1.1 Apr 1, 2016 v0.1.0 Mar 24, 2016 Changes in this version + const AikChallengeURL + const ExtendURL + const GenerateAikURL + const GenerateKeyURL + const GetEKCertURL + const QuoteURL + type AikResponse struct + AIKBlob []byte + AIKPub []byte + type ChallengeData struct + AIK []byte + Asymenc []byte + Symenc []byte + type ChallengeResponse struct + Response []byte + type EkcertResponse struct + EKCert []byte + type ExtendInput struct + Data []byte + Event string + Eventtype int + Pcr int + type KeyData struct + KeyFlags int + type KeyResponse struct + KeyBlob []byte + KeyPub []byte + type QuoteData struct + AIK []byte + Nonce []byte + PCRs []int + type QuoteResponse struct + Data []byte + Events []tspiconst.Log + PCRValues [][]byte + Validation []byte + type TPMClient struct + func New(host string, timeout time.Duration) *TPMClient + func (client *TPMClient) Extend(pcr int, eventtype int, data []byte, event string) error + func (client *TPMClient) GenerateAIK() (aikpub []byte, aikblob []byte, err error) + func (client *TPMClient) GenerateKey(flags int) (keypub []byte, keyblob []byte, err error) + func (client *TPMClient) GetEKCert() (ekcert []byte, err error) + func (client *TPMClient) GetQuote(aikpub []byte, aikblob []byte, pcrs []int) (pcrvals [][]byte, log []tspiconst.Log, err error) + func (client *TPMClient) ValidateAIK(aikblob []byte, asymenc []byte, symenc []byte) (secret []byte, err error)