fakeencryption

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package fakeencryption is using for testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeEncryption

type FakeEncryption struct{}

FakeEncryption does not encrypt data.

func New

func New() *FakeEncryption

New creates a new FakeEncryption.

func (*FakeEncryption) Decrypt

func (s *FakeEncryption) Decrypt(ctx context.Context, encrypted []byte, additionalAuthData string) ([]byte, error)

func (*FakeEncryption) Encrypt

func (s *FakeEncryption) Encrypt(ctx context.Context, data []byte, additionalAuthData string) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL