Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hierarchy: support platform #559

Open
williamcroberts opened this issue Jul 24, 2020 · 5 comments
Open

hierarchy: support platform #559

williamcroberts opened this issue Jul 24, 2020 · 5 comments

Comments

@williamcroberts
Copy link
Member

No description provided.

@williamcroberts
Copy link
Member Author

I guess if you use a persistent key it should work, so think this through.

@AndreasFuchsTPM
Copy link
Member

For any newcomers that wanna help, here's my notes I made for a rainy winter night
(mixed with fapi_external key thoughts)

I'd extend struct tobject with

enum tobject_type = { ttype_default, ttype_persistent_handle, (ttype_fapi_path in the future) }

union {
    struct {
        twist pub;           /** public tpm data */
        twist priv;          /** private tpm data */
        uint32_t tpm_handle;     /** loaded tpm handle */
    };
    uint32_t persistent_handle;
    struct {
        char *fapi_path; (in the future)
        uint32_t tpm_handle;     /** loaded tpm handle */
    };
};

Then extend the yaml-de-/serializer (using ttype_default as default).

Then all access to pub and priv can be omitted in case of ttype_persistent_handle (Or switched to Fapi_GetTpmBlob in case of ttype_fapi)

And all access to tpm_handle can be set to persistent_handle in case of ttype_persistent_handle

@williamcroberts williamcroberts changed the title Add support for the platform hierarchy hierarchy: support platform Jul 25, 2020
@williamcroberts
Copy link
Member Author

I don't see how that fits into this... perhaps ill grok it better verbally.

@AndreasFuchsTPM
Copy link
Member

Sorry, those were some thoughts on peristent keys and FAPI keys. If they don't fit, please ignore.

@williamcroberts
Copy link
Member Author

Sorry, those were some thoughts on peristent keys and FAPI keys. If they don't fit, please ignore.

Ahh context makes more sense. I was the context of primary keys in the hierarchy. But yeah, I guess a persistent subordinate key object could be useful and generally make the token quicker.

@williamcroberts williamcroberts added this to the next milestone Nov 5, 2020
@williamcroberts williamcroberts removed this from the next milestone Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants