Fix comments referring to .Serialize() instead of .Marshal()

This commit is contained in:
Noah Stride 2023-04-14 09:15:37 +01:00 committed by Eric Chiang
parent 1f9c436d57
commit 3ef3949b46

View File

@ -330,7 +330,7 @@ func (t *TPM) Info() (*TPMInfo, error) {
// LoadAK loads a previously-created ak into the TPM for use.
// A key loaded via this function needs to be closed with .Close().
// Only blobs generated by calling AK.Serialize() are valid parameters
// Only blobs generated by calling AK.Marshal() are valid parameters
// to this function.
func (t *TPM) LoadAK(opaqueBlob []byte) (*AK, error) {
return t.tpm.loadAK(opaqueBlob)
@ -373,7 +373,7 @@ func (t *TPM) NewKey(ak *AK, opts *KeyConfig) (*Key, error) {
// LoadKey loads a previously-created application key into the TPM for use.
// A key loaded via this function needs to be closed with .Close().
// Only blobs generated by calling Key.Serialize() are valid parameters
// Only blobs generated by calling Key.Marshal() are valid parameters
// to this function.
func (t *TPM) LoadKey(opaqueBlob []byte) (*Key, error) {
return t.tpm.loadKey(opaqueBlob)