kms

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KMS

type KMS struct {
	Type   *string `json:"type"`
	Cipher []byte  `json:"cipher"`
	// contains filtered or unexported fields
}

func NewKMS

func NewKMS(sess *session.Session) *KMS

func NewKMSFromBinary

func NewKMSFromBinary(bin []byte, sess *session.Session) *KMS

func (*KMS) Decrypt

func (k *KMS) Decrypt() ([]byte, error)

func (*KMS) Encrypt

func (k *KMS) Encrypt(plainText []byte) ([]byte, error)

func (*KMS) SetKeyID

func (k *KMS) SetKeyID(keyID string) *KMS

func (*KMS) String

func (k *KMS) String() string

Jump to

Keyboard shortcuts

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