From 8e83383df91f8a9f28ac1f33e6a5486169d23da0 Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Mon, 5 Aug 2019 17:39:57 -0700 Subject: [PATCH] attest: improve documentation of ActivateCredential (#61) --- attest/attest.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/attest/attest.go b/attest/attest.go index 0fdd00e..2474d58 100644 --- a/attest/attest.go +++ b/attest/attest.go @@ -121,9 +121,11 @@ func (k *AIK) Marshal() ([]byte, error) { return k.aik.Marshal() } -// ActivateCredential decrypts the specified credential using the key. +// ActivateCredential decrypts the secret using the key to prove that the AIK +// was generated on the same TPM as the EK. +// // This operation is synonymous with TPM2_ActivateCredential. -func (k *AIK) ActivateCredential(tpm *TPM, in EncryptedCredential) ([]byte, error) { +func (k *AIK) ActivateCredential(tpm *TPM, in EncryptedCredential) (secret []byte, err error) { return k.aik.ActivateCredential(tpm, in) }