google / google/go-tpm

Typo in session attribute

Open
#260 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

https://github.com/google/go-tpm/blob/master/tpm2/constants.go#L232
```golang
const (
AttrContinueSession SessionAttributes = 1 << iota
AttrAuditExclusive
AttrAuditReset
_ // bit 3 reserved
_ // bit 4 reserved
AttrDecrypt
AttrEcrypt /// <<< should be AttrEncrypt
AttrAudit
)
```

Contributor guide

Open the contributing guide

Research direction

Open constants.go around line 232 and inspect the session attribute declarations. Confirm the misspelled AttrEcrypt identifier should be AttrEncrypt, then check the surrounding bit ordering and reserved entries. Done means the exported constant name matches the TPM session attribute spelling without changing the other declarations.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
security
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.