github.com/trustbloc/kms-go@v1.1.2/kms/localkms/keytemplate_factory.go (about)

     1  /*
     2  Copyright Avast Software. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package localkms
     8  
     9  import (
    10  	tinkpb "github.com/google/tink/go/proto/tink_go_proto"
    11  
    12  	"github.com/trustbloc/kms-go/spi/kms"
    13  )
    14  
    15  // getKeyTemplate returns tink KeyTemplate associated with the provided keyType.
    16  func getKeyTemplate(keyType kms.KeyType, opts ...kms.KeyOpts) (*tinkpb.KeyTemplate, error) {
    17  	return keyTemplate(keyType, opts...)
    18  }