TPM2 (Trusted Platform Module) userspace development
 help / color / mirror / Atom feed
From: Roberts, William C <william.c.roberts at intel.com>
To: tpm2@lists.01.org
Subject: [tpm2] Re: How do I use Microsoft's sim (TSS.MSR) with lib tss2-esys
Date: Thu, 10 Mar 2022 16:17:13 +0000	[thread overview]
Message-ID: <394a2d08fa6151131b6bbac9a3dc184b28fea433.camel@intel.com> (raw)
In-Reply-To: CAMs2GArBD5c5M-CPxUiUd4F2Gq7qChkFfwKxOyPXiG0v67C5HQ@mail.gmail.com

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

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>

             reply	other threads:[~2022-03-10 16:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-10 16:17 Roberts, William C [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-03-11 19:25 [tpm2] Re: How do I use Microsoft's sim (TSS.MSR) with lib tss2-esys Markus Willhelm Schmid
2022-03-11 13:34 Kenneth Goldman
2022-03-10 16:09 Roberts, William C
2022-03-10 16:08 Roberts, William C
2022-03-10 15:44 Markus Willhelm Schmid
2022-03-10 14:11 Kenneth Goldman
2022-03-09 23:55 Markus Willhelm Schmid
2022-03-09 21:08 Markus Willhelm Schmid
2022-03-09 15:41 Roberts, William C

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=394a2d08fa6151131b6bbac9a3dc184b28fea433.camel@intel.com \
    --to=tpm2@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox