mirror of
https://github.com/google/go-attestation.git
synced 2025-01-30 23:53:51 +00:00
attest: remove unused KeyPurpose exported type
Was going through the godoc and it's not clear that this is ever used. To clean up the API, remove KeyPurpose for now. This could probably be an internal validation anyway, right?
This commit is contained in:
parent
f3f08037f8
commit
833a7e119f
@ -83,17 +83,6 @@ const (
|
||||
keyEncodingParameterized
|
||||
)
|
||||
|
||||
// KeyPurpose indicates the intended use of the key. It is implied that
|
||||
// the key was created with usage restrictions to constrain its use
|
||||
// to the given purpose.
|
||||
type KeyPurpose uint8
|
||||
|
||||
// Key purposes.
|
||||
const (
|
||||
AttestationKey KeyPurpose = iota
|
||||
StorageKey
|
||||
)
|
||||
|
||||
type aik interface {
|
||||
Close(*TPM) error
|
||||
Marshal() ([]byte, error)
|
||||
|
Loading…
x
Reference in New Issue
Block a user