parallaxsecond / rust-tss-esapi

TSS 2.0 Enhanced System API (ESAPI) Rust wrapper
https://docs.rs/tss-esapi/
Apache License 2.0
85 stars 51 forks source link

ea_commands: add policy_authorize_nv #486

Closed gomesj closed 7 months ago

gomesj commented 7 months ago

Although binding is already present, policy_authorize_nv was missing from the supported enhanced authorization commands. Add a simple implementation to fill the gap.

Superhepper commented 7 months ago

Thank you for the PR. Could you please also add some tests for this Context method?

gomesj commented 7 months ago

Good point, added a simple test case in my last push.

Superhepper commented 7 months ago

Well actually I meant both. The methods need to be documented a little better especially when it is a Context method. Unfortunately not all Context methods are documented properly at the moment. But there are a few good examples that you can have a look at (e.g. ecdh_key_gen).