@Foxboron I need to try that out against my tool. It already nicely operates with openssl and tpm2-tools.
tpm2sh can generate keys with policies.
The set of commands is fairly limited but it is a subset that I pick to maximize coverage for the time being: or, secret and pcr.
Unfortunately spec is quite incomplete when it comes to PolicyOr but my tool generates the full PolicyRestart dance to the file. That way e.g. kernel in future can implement a functional executor.
What executor needs to done with output data:
1. Fill policy handle with active session handle.
2. Resolve handles for PolicySecret calls.
It would be cool to maintain some kind of interoperatibility with sbctl given the state of spec and that way sort of "fill out the blanks" :-)
For auth values in the latest version I've ended up to "<handle>:<hex>" type of list of mappings. Linear list of values is quite difficult to map when you have both purely auth value authenticated object and policies referencing to handles.