awskms

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HSM

type HSM struct {
	KMS     *kms.KMS
	KeyName string
}

HSM is struct for AWS KMS.

func NewHSM

func NewHSM(cli *kms.KMS, keyName string) *HSM

NewHSM creates new HSM.

func (*HSM) Decrypt

func (h *HSM) Decrypt(cipherByte []byte) (plainText string, err error)

Decrypt decrypts prefixed cipherByte.

func (*HSM) Encrypt

func (h *HSM) Encrypt(plainText string) (cipherText string, err error)

Encrypt encrypts plainText and adds prefix.

Jump to

Keyboard shortcuts

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