I don't know if I get it. I though you would present the persistent-handle in either case and then say if you persistent to this persistent-handle or if you evicted this peristent-handle ? Andreas ________________________________________ From: Roberts, William C [william.c.roberts(a)intel.com] Sent: Monday, October 28, 2019 17:40 To: tpm2(a)lists.01.org Cc: Struk, Tadeusz; Fuchs, Andreas Subject: ESYS_TR to TPM2_HANDLE In tpm2_evictcontrol, I can load a serialized ESYS_TR object. The tool output, which I must keep stable, uses a TPM2_HANDLE in the output and whether or not that handle was persisted or evicted. In the case of persisted, that is simple, I know it. In the case of evicted, I cannot know it. Is there a way to get the TPM2_HANDLE for that ESYS_TR? I see ESAPI knows it... The other option I have considered is just to print out a 0 or some other dummy value for the handle on evict, but I am not super fond of that. Bill