On Tue, Aug 12, 2025 at 03:59:25PM +0300, Jarkko Sakkinen wrote:
> I came up with this within 1,5 weeks not much sleep, and thought that
> this might be interesting to all of the three lists:

https://github.com/puavo-org/tpm2_library

Known issues; two tests are failing  They work when copy-pasted to cli
without any change, when run in a temporary subcommand, Not sure what 
is going on but looking into over time. And not all subcommands are
yet too well tested or polished ;-)

Features, reference and driver for this work is my earlier trial from
2014: https://github.com/ColinIanKing/tpm2-scripts

And partly this cover letter:
https://lore.kernel.org/linux-integrity/20240528210823.28798-1-jar...@kernel.org/

[i was planning to update that patch set but was not happy with the
 tools so i decided to make my own.]

With those constraints I learned by trial and error to use macro_rules
and this the outcome. I'm looking forward to narrow the delta between
static estimate and run time 'len()' over time.

This is designed as unipolar TPM protocol stack i.e. it's designed not
only send commands and receive responses, but also send responses and
receive commands.

BR, Jarkko


Reply via email to