mirror of
https://github.com/google/go-attestation.git
synced 2024-12-18 20:47:57 +00:00
Fix comments referring to .Serialize()
instead of .Marshal()
This commit is contained in:
parent
1f9c436d57
commit
3ef3949b46
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user