google / google/go-tpm

Support As(TPMRC) for format-1 errors.

Open
#340 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
673
Forks
188
PR merge metrics
No merged PRs in 30d

Description

Ideally this always gives a canonical code, even if the error is a TPM format-1 error code (bearing handle and other metadata):

```go
_, err := tpm2.SomeCommand{}.Execute(tpm)
var rc tpm2.TPMRC
if errors.As(err, &rc) {
fmt.Printf("TPM canonical code: %v\n", rc)
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.