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

Idea: PublicBuilder presets for common usecases #499

Closed Firstyear closed 6 months ago

Firstyear commented 6 months ago

There are some common cases we could add to public builder to save users from having to determine all the required feature flags and combinations needed. An example could be PublicBuilder::new_sealed_data_object() where we have this yield and create a value objectattributes and public that meet the requirements. Is that something that would be wanted? I'm sure there are other use cases too.

wiktor-k commented 6 months ago

I think it's a good idea. AFAIUI it would pre-populate the builder with some known good combinations and still require specifying e.g. exact algorithms...?

Firstyear commented 6 months ago

Yes that's what I was thinking. Some examples could be from the tpm spec section 25.1.5, such as "sealed data object", "general purpose key", "storage key".

Superhepper commented 6 months ago

Yeah, that can be useful as long as we do not specify key sizes or algorithms