Their are some examples in the integration tests:
https://github.com/tpm2-software/tpm2-tools/blob/master/test/integration/tests/createprimary.sh#L55

It requires the hand jamming of specific data structures unique to the key type. Eventually we want to get a better
interface on that option.

I thought we had an open bug for this, but I couldn't find one, so I created a new one:
https://github.com/tpm2-software/tpm2-tools/issues/2378


From: Ted Kim <ted.h.kim@oracle.com>
Sent: Friday, March 12, 2021 1:48 PM
To: tpm2@lists.01.org <tpm2@lists.01.org>
Subject: [tpm2] does "unique-data" really work?
 
Folks,

Does unique-data option really work?
It did not seem to work for me in that the keys with different
"unique-data" seem identical.

If it does work, what version is needed?

Thanks,
-ted

--
Ted H. Kim, PhD
ted.h.kim@oracle.com
+1 310-258-7515
_______________________________________________
tpm2 mailing list -- tpm2@lists.01.org
To unsubscribe send an email to tpm2-leave@lists.01.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s