[tpm2] Re: How do I use Microsoft's sim (TSS.MSR) with lib tss2-esys

Roberts, William C <william.c.roberts at intel.com>
Newsgroups dev.linux.lists.tpm2
Message-ID <[email protected]>
On Wed, 2022-03-09 at 13:08 -0800, Markus Willhelm Schmid wrote:
> Thanks Bill, 
> 
> I am a noob and I am just trying to learn. I have no TPM on my
> computer so I have to use a simulator.
> 
> I am a little confused since this page: 
> https://sourceforge.net/projects/ibmswtpm2/
> Says: The latter implements the protocol exposed by the Microsoft
> software TPM2 simulator. Google sent me to: 
> https://www.microsoft.com/en-us/download/details.aspx?id=52507
> 
> When you say IBM simulator, are you referring to: 
> https://sourceforge.net/projects/ibmtpm20tss/
> If so, this code will not compile on Windows or Linux. I tried to
> bypass the ifdef for OpenSSL version check in the headers, but I then
> got a lot of errors. I believe this code requires an ancient
> (unspecified) OpenSSL version. Also, I could not find anything pre-
> built.

That's the TSS which provides an API to the TPM, nothing more, nothing
less.

This is the reference implementation of a TPM2.0 simualtor by
microsoft:
  - https://www.microsoft.com/en-us/download/details.aspx?id=52507

The download says TSS but if you follow the link from this page:
  - 
https://www.microsoft.com/en-us/research/project/the-trusted-platform-module-tpm/

its really the simulator as pre-built binary (the zip file name says
simulator as well)

The source for the MS simulator is open source and found here:
  - https://github.com/microsoft/ms-tpm-20-ref

This is the ibmtpm simulator which is the reference code/microsoft
simulator massaged for linux and ken adds a few things if IIUC:
  - https://sourceforge.net/projects/ibmswtpm2/


The interface (2 sockets) to the simulators between the IBM and MS
versions is identical. In tpm2-tss world, they use the mssim tcti.

<snip>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.