From 833a7e119f0e075ad02cda0758afd237db26e7e1 Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Tue, 30 Jul 2019 07:41:31 -0700 Subject: [PATCH] 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? --- attest/attest.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/attest/attest.go b/attest/attest.go index 0fdd00e..4bb2818 100644 --- a/attest/attest.go +++ b/attest/attest.go @@ -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)