Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(kmsClient kmsiface.KMSAPI, storage KMSStorage, symmetricMasterKeyAlias string) security.SecureModule
New creates and instance of secure module based on AWS KMS service for asymmetric and symmetric security
Types ¶
type KMSStorage ¶
type KMSStorage interface { Save(ctx runtime.Context, alias string, criptedKey []byte, algo string) error Get(ctx runtime.Context, alias string) (KMSStorageData, error) }
KMSStorage defines the behavior of the KMS storage. KMS needs a master KEY (stored in the AWS KMS service) used to generate a random AES key This interface will be used to store the random AES Key that will be used to encrypt or decrypt data. This AES Key is encrypted with the master Key and can be used only with Encrypt/Decrypt KMS client operations
type KMSStorageData ¶
KMSStorageData is the entity stored in the KMS Storage
Click to show internal directories.
Click to hide internal directories.