Skip to content

saved key context file compatibility with go-tpm #3517

@salrashid123

Description

@salrashid123

hi-

i'm considering writing a very basic external utility in go which helps convert atleast a key context file between tpm2_tools and go-tpm

The context file which go saves is more ore less raw

while tpm2_tools is a struct with a header, additional fields and esys metadata at the end.


i managed to spend a fair amount of hrs spelunking around the code and docs and atleast came up with some way to do this only for a key.

https://github.com/salrashid123/tpm2/tree/master/tpm2_tools_load_ctx#tpm2_tools----go-tpm

a conversion utility probably certainly doen't fit into this repo nor go-tpm but if the byte gymnastics is the best/only way about it, i can start with just key converson alone. any thoughts would be great

ref

google/go-tpm#378

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions