mirror of
https://github.com/tpm2dev/tpm.dev.tutorials.git
synced 2024-11-10 01:12:10 +00:00
637 B
637 B
TPM2_Import()
TPM2_Import()
reads a wrapped key produced by
TPM2_Duplicate()
and outputs a blob that can be
saved and later loaded with TPM2_Load()
.
Inputs
TPM2B_DATA encryptionKey
(optional; symmetric key to decrypt with)TPM2B_PUBLIC objectPublic
TPM2B_PRIVATE duplicate
TPM2B_ENCRYPTED_SECRET inSymSeed
TPMT_SYM_DEF_OBJECT+ symmetricAlg
Outputs (success case)
TPM2B_PRIVATE outPrivate