You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi TSS team,
I am a new in TPM field. I am trying to use TPM to do key protection, encryption and decryption on computer.
I can create RSA primary storage key by TPM engine, and do encryption/decryption operations by the TSS.MSR C++ library (https://github.com/microsoft/TSS.MSR).
Now, I want to use your tpm2-tss software stack to import an AES key generated by OpenSSL, then import that key into TPM device. I am working on Windows (no Linux).
I descript what I am doing:
Create AES key by OpenSSL RAND command, the key is aes_key.bin. I want tpm2-tss can import this key.
Successfully create TCTI context via the TCTILdr, like: rc = Tss2_TctiLdr_Initialize("tbs", &tctiContext);
Successfully initialize the system context, like: rc = Tss2_Sys_Initialize(sysContext, contextSize, tctiContext, &abiVersion);
Successfully retrieve the TPM features by Tss2_Sys_GetCapability.
Create a primary key to protect imported key.
Read aes_key.bin file into std::vector
import and load the key file on tpm2-tss side.
Finally persist the key via Tss2_Sys_EvictControl function.
I have 2 blockers:
I failed at Tss2_Sys_CreatePrimary. The function failed and return error code: 0xa1 (Bat Auth?)
If I successfully create the primary key, then how can I import the key and persist into TPM? I am not sure my step 6, 7, 8 are correct.
The Tss2_Sys_CreatePrimary always return 0xa1 code. I copied the code of key generation from your \test\tpmclient\tpmclient.int.c file.
I hope I can got your help soon, much appreciate! Thanks!
The text was updated successfully, but these errors were encountered:
Hi TSS team,
I am a new in TPM field. I am trying to use TPM to do key protection, encryption and decryption on computer.
I can create RSA primary storage key by TPM engine, and do encryption/decryption operations by the TSS.MSR C++ library (https://github.com/microsoft/TSS.MSR).
Now, I want to use your tpm2-tss software stack to import an AES key generated by OpenSSL, then import that key into TPM device. I am working on Windows (no Linux).
I descript what I am doing:
I have 2 blockers:
Here I post my key snippet:
The Tss2_Sys_CreatePrimary always return 0xa1 code. I copied the code of key generation from your \test\tpmclient\tpmclient.int.c file.
I hope I can got your help soon, much appreciate! Thanks!
The text was updated successfully, but these errors were encountered: