[tpm2] flush ALL transient handles or sessions in tpm2-pytss

Gadacz, Henry <henry.gadacz at sit.fraunhofer.de> Tue, 20 Sep 2022 15:20:29 +0000
Newsgroups dev.linux.lists.tpm2
Message-ID <FR0P281MB1706089B02CCECC42100B6DDD14C9@FR0P281MB1706.DEUP281.PROD.OUTLOOK.COM>
I have another question :D 


With tpm2_flushcontext it is possible to flush ALL transient objects, loaded
sessions or saved sessions.

How can I accomplish the same with tpm2-pytss esapi.flush_context()? I only
found examples with flush one specific object or session.

 

Thanks in advance!

 

Best Regards,

Henry
attachment.htm (text/html, 1.8 KB)
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>I have another question :D <o:p></o:p></p><p class=MsoNormal><br>With tpm2_flushcontext it is possible to flush ALL transient objects, loaded sessions or saved sessions.<o:p></o:p></p><p class=MsoNormal>How can I accomplish the same with tpm2-pytss esapi.flush_context()? I only found examples with flush one specific object or session.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks in advance!<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Best Regards,<o:p></o:p></p><p class=MsoNormal>Henry<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>
smime.p7s (application/pkcs7-signature, 7.7 KB) - not displayed