storj.io/minio@v0.0.0-20230509071714-0cbc90f649b1/cmd/crypto/kms.go (about)

     1  // MinIO Cloud Storage, (C) 2015, 2016, 2017, 2018 MinIO, Inc.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //    http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package crypto
    16  
    17  import (
    18  	"storj.io/minio/pkg/kms"
    19  )
    20  
    21  // Context is a list of key-value pairs cryptographically
    22  // associated with a certain object.
    23  type Context = kms.Context
    24  
    25  // KMS represents an active and authenticted connection
    26  // to a Key-Management-Service. It supports generating
    27  // data key generation and unsealing of KMS-generated
    28  // data keys.
    29  type KMS = kms.KMS