kubernetes/staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/envelope_test.go

const testText

const testContextText

const testEnvelopeCacheSize

type testEnvelopeService

func (t *testEnvelopeService) Decrypt(data []byte) ([]byte, error) {}

func (t *testEnvelopeService) Encrypt(data []byte) ([]byte, error) {}

func (t *testEnvelopeService) SetDisabledStatus(status bool) {}

func (t *testEnvelopeService) Rotate() {}

func newTestEnvelopeService() *testEnvelopeService {}

// Throw error if Envelope transformer tries to contact Envelope without hitting cache.
func TestEnvelopeCaching(t *testing.T) {}

// Makes Envelope transformer hit cache limit, throws error if it misbehaves.
func TestEnvelopeCacheLimit(t *testing.T) {}

func BenchmarkEnvelopeCBCRead(b *testing.B) {}

func BenchmarkAESCBCRead(b *testing.B) {}

func BenchmarkEnvelopeGCMRead(b *testing.B) {}

func BenchmarkAESGCMRead(b *testing.B) {}

func benchmarkRead(b *testing.B, transformer value.Transformer, valueLength int) {}

// remove after 1.13
func TestBackwardsCompatibility(t *testing.T) {}

// remove after 1.13
func oldTransformToStorage(ctx context.Context, t *envelopeTransformer, data []byte, dataCtx value.Context) ([]byte, error) {}