Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SetupCMM = func(keyIDs []string, opts ...func(options *config.LoadOptions) error) materials.CryptoMaterialsManager { keyProvider, err := providers.NewKmsKeyProviderWithOpts( keyIDs, providers.WithAwsLoadOptions(opts...), providers.WithDiscovery(true), ) if err != nil { log.Error().Err(err).Msg("setupCMM") return nil } cmm, _ := materials.NewDefault(keyProvider) return cmm }
View Source
var SetupClient = func(maxEdk int) *client.Client { cfg, err := clientconfig.NewConfigWithOpts( clientconfig.WithCommitmentPolicy(suite.CommitmentPolicyRequireEncryptRequireDecrypt), clientconfig.WithMaxEncryptedDataKeys(maxEdk), ) if err != nil { panic(err) } c := client.NewClientWithConfig(cfg) return c }
View Source
var SetupDecryptCmd = func(keyIDs []string, ec map[string]string, frame int, edk int, alg string) *CliCmd { return NewDecryptCmd(keyIDs, ec, frame, edk) }
View Source
var SetupEncryptCmd = func(keyIDs []string, ec map[string]string, frame int, edk int, alg string) *CliCmd { return NewEncryptCmd(keyIDs, ec, frame, edk, alg) }
Functions ¶
func AlgSuffix ¶
func AlgSuffix(as *suite.AlgorithmSuite) string
Types ¶
type CliCmd ¶
type CliCmd struct {
// contains filtered or unexported fields
}
func NewDecryptCmd ¶
func NewEncryptCmd ¶
func NewVersionCmd ¶
func NewVersionCmd() *CliCmd
Click to show internal directories.
Click to hide internal directories.