mirror of
https://github.com/google/go-attestation.git
synced 2024-12-21 22:07:56 +00:00
Fix sig mismatch in AIK certification (#50)
This commit is contained in:
parent
83cab51aec
commit
0f6a187a1c
@ -417,7 +417,7 @@ func (t *TPM) MintAIK(opts *MintOptions) (*Key, error) {
|
||||
return nil, fmt.Errorf("CertifyCreation failed: %v", err)
|
||||
}
|
||||
// Pack the raw structure into a TPMU_SIGNATURE.
|
||||
signature, err := tpmutil.Pack(tpm2.AlgRSASSA, tpm2.AlgSHA256, sig)
|
||||
signature, err := tpmutil.Pack(tpm2.AlgRSASSA, tpm2.AlgSHA256, tpmutil.U16Bytes(sig))
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to pack TPMT_SIGNATURE: %v", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user