mirror of
https://github.com/tpm2dev/tpm.dev.tutorials.git
synced 2024-11-10 01:12:10 +00:00
1.5 KiB
1.5 KiB
TPM2_MakeCredential()
TPM2_MakeCredential()
takes an EKpub, the name of an object in a TPM
identified by that EKpub, and a small secret, and it encrypts {name, secret}
to the EKpub.
Nothing terribly interesting happens here. All the interesting
semantics are on the
TPM2_ActivateCredential()
side.
Together with TPM2_ActivateCredential()
,
this function can be used to implement attestation protocols.
Inputs
TPMI_DH_OBJECT handle
(e.g., an EKpub to encrypt to)TPM2B_DIGEST credential
(not necessarily a digest, but a small [digest-sized] secret)TPM2B_NAME objectName
(name of object resident on the same TPM ashandle
thatTPM2_ActivateCredential()
will check)
Outputs
TPM2B_ID_OBJECT credentialBlob
(ciphertext of encryption ofcredential
with a secret "seed" [see below])TPM2B_ENCRYPTED_SECRET secret
(ciphertext of encryption of a "seed" tohandle
)