wolfSSL / wolfTPM

wolfTPM is a highly portable TPM 2.0 library, designed for embedded use.
https://www.wolfssl.com
GNU General Public License v2.0
232 stars 56 forks source link

Quote example (PCR attestation) #106

Closed tomoveu closed 3 years ago

tomoveu commented 4 years ago

Now that we have a signed timestamp example, we also need to have and a TPM2.0 Quote example using wolfTPM, my structure currently looks like this

./examples/pcr

I think I can have this ready by EoW and I will try to push something before the weekend for review.

@dgarske are you OK with one folder for more than one example, as long as they are on the same tech topic(PCR)?

ps: initially, I named the folder attestation, but then people may confuse with the timestamp folder which is also form of attestation, although by TCG spec attestation is signing PCRs and GetTime is just another Attestation operation AFAIK.

ps2: Please mark this issue as enhancement (Github label), thanks :)

dgarske commented 4 years ago

Hi @tomoveu : Yes putting multiple PCR examples into the same folder is fine. Your plan sounds great and I like the pcr folder name.

tomoveu commented 3 years ago

Now that #107 is merged, we might think about a verifier of the generated TPM2 Quote. Essentially, verifying the signature.

tomoveu commented 3 years ago

We have examples for:

  1. PCR reset
  2. PCR extend
  3. Quote
  4. Quote already stores the output into a file
    • We are only missing a signature verifier.

@dgarske I think the verifier example could be one for both Quote and GetTime #105

Because both TPM 2.0 commands produce TPM2B_ATTEST and TPMT_SIGNATURE as their output. The latter holds the signature. In that case, we might be looking at a total of two days effort to have a verifier that supports both Quote and GetTime.

tomoveu commented 3 years ago

Remaining enhancements will be address by #153