attest: rename MintAIK and MintOptions to NewAIK and AIKConfig

This helps the godoc read better and is more inline with Go's naming
scheme. No functional changes made, just naming.
This commit is contained in:
Eric Chiang
2019-08-28 09:25:14 -07:00
parent fefdb7d336
commit e688ff6d7f
9 changed files with 33 additions and 33 deletions

View File

@ -270,8 +270,8 @@ func (t *TPM) EKs() ([]EK, error) {
}
}
// MintAIK creates an attestation key.
func (t *TPM) MintAIK(opts *MintOptions) (*AIK, error) {
// NewAIK creates an attestation key.
func (t *TPM) NewAIK(opts *AIKConfig) (*AIK, error) {
switch t.version {
case TPMVersion12:
pub, blob, err := attestation.CreateAIK(t.ctx)