const aesGCMPrefix …
const aesCBCPrefix …
const aesGCMConfigYAML …
const aesCBCConfigYAML …
const identityConfigYAML …
func TestSecretsShouldBeTransformed(t *testing.T) { … }
func BenchmarkBase(b *testing.B) { … }
func BenchmarkIdentityWrite(b *testing.B) { … }
func BenchmarkAESGCMEnvelopeWrite(b *testing.B) { … }
func BenchmarkAESCBCEnvelopeWrite(b *testing.B) { … }
func runBenchmark(b *testing.B, transformerConfig string) { … }
func unSealWithGCMTransformer(ctx context.Context, cipherText []byte, dataCtx value.Context,
transformerConfig apiserverv1.ProviderConfiguration) ([]byte, error) { … }
func unSealWithCBCTransformer(ctx context.Context, cipherText []byte, dataCtx value.Context,
transformerConfig apiserverv1.ProviderConfiguration) ([]byte, error) { … }
func newAESCipher(key string) (cipher.Block, error) { … }