func (tt *TPM2Tao) loadQuote() (tpm2.Handle, error) { qh, err := tpm2.LoadContext(tt.rw, tt.quoteContext) if err != nil { return tpm2.Handle(0), errors.New("Load Context fails for quote") } return qh, nil }
// IAH: does it build? func (tt *TPM2Tao) loadSeal() (tpm2.Handle, error) { sh, err := tpm2.LoadContext(tt.rw, tt.sealContext) if err != nil { return tpm2.Handle(0), errors.New("Load Context fails for root") } return sh, nil }
func (tt *TPM2Tao) loadRoot() (tpm2.Handle, error) { rh, err := tpm2.LoadContext(tt.rw, tt.rootContext) if err != nil { return tpm2.Handle(0), errors.New("Load Context fails for root") } return rh, nil }