mirror of
https://github.com/google/go-attestation.git
synced 2025-04-12 13:47:50 +00:00
attest: improve documentation of ActivateCredential (#61)
This commit is contained in:
parent
9020140437
commit
8e83383df9
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user