crypto

package
v0.0.0-...-8f66fda Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher struct {
	Encrypter
	Decrypter
}

type Decrypter

type Decrypter interface {
	Decrypt(encoded []byte, encryptionContext map[string]*string) ([]byte, gomerr.Gomerr)
	DecryptWithContext(context context.Context, encoded []byte, encryptionContext map[string]*string) ([]byte, gomerr.Gomerr)
}

func KmsDataKeyDecrypter

func KmsDataKeyDecrypter(kmsClient kmsiface.KMSAPI) Decrypter

type Encrypter

type Encrypter interface {
	Encrypt(plaintext []byte, encryptionContext map[string]*string) ([]byte, gomerr.Gomerr)
	EncryptWithContext(context context.Context, plaintext []byte, encryptionContext map[string]*string) ([]byte, gomerr.Gomerr)
}

func KmsDataKeyEncrypter

func KmsDataKeyEncrypter(kmsClient kmsiface.KMSAPI, masterKeyId string) Encrypter

TODO: add support for asymmetric keys

Jump to

Keyboard shortcuts

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