Closed jeremyhahn closed 4 months ago
I realized my mistake, I was passing the hierarchy password as the primary key auth, and needed to pass the hierarchy auth like this instead:
PrimaryHandle: tpm2.AuthHandle{
Handle: tpm2.TPMRHOwner,
Auth: tpm2.PasswordAuth([]byte("my-hierarchy-password")),
},
Steps to reproduce:
Try to pass the auth option when creating a primary key
I can see that my password is being passed into tpm2.execute[R any] properly and passed to cmdAuths, where I enter this function:
The if statement with the TODO seems to be incorrectly parsing the command, leading to the PasswordAuth(nil) being set instead of my password.
Is this a bug or am I doing something wrong here?