Add helper for tpmDirect ObjectAttributes
- Dominant language
- Go
- Stars
- 673
- Forks
- 188
- PR merge metrics
- No merged PRs in 30d
Description
Make a similar helper for tpma.Object structs that legacy go-tpm has, like FlagSealDefault and FlagSignerDefault (https://github.com/google/go-tpm/blob/master/tpm2/constants.go#L256-L260). Writing out all flags (https://github.com/google/go-tpm/pull/297/files/3814f2885e1cf2d8bff8c0bccb25d472c053aa16#r931350877) can be a bit tedious.
Contributor guide
Research direction
Start by locating the tpma.Object type and compare the requested helpers with legacy go-tpm's FlagSealDefault and FlagSignerDefault in constants.go. Use the referenced pull request discussion to understand the intended ObjectAttributes combinations; done means equivalent helpers exist for the requested defaults and match those legacy definitions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- security
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100