TPM2 (Trusted Platform Module) userspace development
 help / color / mirror / Atom feed
* [tpm2] trying duplication and then rsa_en/decrypt
@ 2020-05-20  1:09 ted.h.kim
  0 siblings, 0 replies; only message in thread
From: ted.h.kim @ 2020-05-20  1:09 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 1507 bytes --]

Folks,

Sorry for what is probably an obvious question ...

I tried the examples in the tpm2_duplicate(1) and 
tpm2_policyduplicationselect(1) man pages. Afterwards, I just wanted to 
try out the duplicated keys. So I tried tpm2_rsaencrypt followed by 
tpm2_rsadecrypt. But when doing the latter, I got:

WARNING:esys:src/tss2-esys/api/Esys_RSA_Decrypt.c:305:Esys_RSA_Decrypt_Finish() 
Received TPM Error
ERROR:esys:src/tss2-esys/api/Esys_RSA_Decrypt.c:102:Esys_RSA_Decrypt() 
Esys Finish ErrorCode (0x0000012f)
ERROR: Esys_RSA_Decrypt(0x12F) - tpm:error(2.0): authValue or authPolicy 
is not available for selected entity
ERROR: Unable to run tpm2_rsadecrypt


Which I guess means I didn't satisfy the policy for the object. But if I 
try to run tpm2_startauthsession like those man page examples show, I 
get this error:

WARNING:esys:src/tss2-esys/api/Esys_RSA_Decrypt.c:305:Esys_RSA_Decrypt_Finish() 
Received TPM Error
ERROR:esys:src/tss2-esys/api/Esys_RSA_Decrypt.c:102:Esys_RSA_Decrypt() 
Esys Finish ErrorCode (0x000009a4)
ERROR: Esys_RSA_Decrypt(0x9A4) - tpm:session(1):the commandCode in the 
policy is not the commandCode of the command or the command code in a 
policy command references a command that is not implemented
ERROR: Unable to run tpm2_rsadecrypt


And so, I am confused now about what I need to do to get these 
duplicated keys to work with tpm2_rsadecrypt.


Thanks,
-ted



-- 
Ted H. Kim, PhD
ted.h.kim(a)oracle.com
+1 310-258-7515


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-20  1:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-20  1:09 [tpm2] trying duplication and then rsa_en/decrypt ted.h.kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox