parallaxsecond / parsec

Platform AbstRaction for SECurity service
https://parsec.community/
Apache License 2.0
467 stars 67 forks source link

Add a Trusted Platform Module Provider #65

Closed hug-dev closed 4 years ago

hug-dev commented 4 years ago

This issue tracks the work of adding a new provider in PARSEC for TPM support. This new provider will implement the Provide trait to respond to clients requests.

Multiple options are possible for the implementation:

cc @parallaxsecond/maintainers

hug-dev commented 4 years ago

From the ESAPI specs:

No two threads are allowed the same ESAPI context simultaneously.

We did a test where creating two contexts and trying in one to refer to the key handle of the other, ESAPI does not allow that (key handle does not exist) (cc @ionut-arm ). That would mean that inside the provider functions, the code will be single-threaded (ensured with mutexes) so that we only have one context at all time. This context will be created when the provider is created.

hug-dev commented 4 years ago

75 was just merged :)