mirror of
https://github.com/google/go-attestation.git
synced 2025-06-02 07:20:52 +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.
|
// LoadAK loads a previously-created ak into the TPM for use.
|
||||||
// A key loaded via this function needs to be closed with .Close().
|
// 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.
|
// to this function.
|
||||||
func (t *TPM) LoadAK(opaqueBlob []byte) (*AK, error) {
|
func (t *TPM) LoadAK(opaqueBlob []byte) (*AK, error) {
|
||||||
return t.tpm.loadAK(opaqueBlob)
|
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.
|
// LoadKey loads a previously-created application key into the TPM for use.
|
||||||
// A key loaded via this function needs to be closed with .Close().
|
// 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.
|
// to this function.
|
||||||
func (t *TPM) LoadKey(opaqueBlob []byte) (*Key, error) {
|
func (t *TPM) LoadKey(opaqueBlob []byte) (*Key, error) {
|
||||||
return t.tpm.loadKey(opaqueBlob)
|
return t.tpm.loadKey(opaqueBlob)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user