package
0.0.0-20240917120716-8843776e9f3a
Repository: https://github.com/cossacklabs/acra.git
Documentation: pkg.go.dev
# Functions
GetKeyManagerCreator return KeyManagerCreateFunc by its ID from registry.
NewKeyEncryptor create new KeyEncryptor.
NewKeyMakingWrapper create new KeyMakingWrapper.
RegisterKeyManagerCreator add new kms KeyManager to registry.
# Constants
KMS kek descriptions.
KMS kek descriptions.
KMS kek descriptions.
# Structs
CreateKeyMetadata represent common structure for creating KMS key.
KeyEncryptor implementation of KMS keystore.KeyEncryptor.
KeyMakingWrapper wrap keystore.KeyMaking implementation with KMS key creation at start.
KeyMetadata represent structure that store key creation result.
# Interfaces
Encryptor is main kms encryptor interface
go:generate mockery --name Encryptor --output ../../mocks --filename KmsEncryptor.go.
KeyMaking interface used by KMS wrapper for generating keys.
KeyManager is main kms interface
go:generate mockery --name KeyManager --output ../../mocks --filename KeyManager.go.
KeyMapper represent interface for converting keystore.KeyContext to keyID.
# Type aliases
KeyManagerCreateFunc generic function for creating KeyManager.