Chris Fenner

Results 3 comments of Chris Fenner
trafficstars

You could try `Unmarshal[whatever type you're trying to unmarshal]`: https://github.com/google/go-tpm/blob/ee6cbcd136f878df2c2f36b4a085d2115330f379/tpm2/marshalling.go#L55

The bad news is that in the legacy API, per-type unmarshalling support is more spotty. It might be there somewhere depending on what you want to unmarshal. The good news...

Hmm, `IESYS_RESOURCE` sounds like a TSS type, not a TPM type. You might not get much help from go-tpm for that structure, since it's not a real TPM structure.