github.com/hyperledger/aries-framework-go@v0.3.2/pkg/secretlock/secretlock.go (about) 1 /* 2 Copyright SecureKey Technologies Inc. All Rights Reserved. 3 SPDX-License-Identifier: Apache-2.0 4 */ 5 6 // Package secretlock contains secret lock services to secure keys used by the Aries agent 7 // and more specifically used by the KMS service. 8 package secretlock 9 10 import ( 11 "github.com/hyperledger/aries-framework-go/spi/secretlock" 12 ) 13 14 // Service provides crypto service used internally by the KMS 15 // it is responsible for wrapping/unwrapping keys stored by the KMS using a master key. 16 type Service = secretlock.Service 17 18 // EncryptRequest for encrypting remote kms requests. 19 type EncryptRequest = secretlock.EncryptRequest 20 21 // DecryptRequest for decrypting remote kms requests. 22 type DecryptRequest = secretlock.DecryptRequest 23 24 // EncryptResponse for receiving encryption response from remote kms requests. 25 type EncryptResponse = secretlock.EncryptResponse 26 27 // DecryptResponse for receiving decryption response from remote kms requests. 28 type DecryptResponse = secretlock.DecryptResponse