mirror of
https://github.com/google/go-attestation.git
synced 2025-06-23 16:58:04 +00:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user