gcp

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const Scheme = "gcp"

Scheme represents gcp cipher scheme

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher struct {
	*cloudkms.Service
}

Cipher represents gcp cipher

func New

func New(ctx context.Context, opts ...option.ClientOption) (*Cipher, error)

New creates gcp cipher

func (*Cipher) Decrypt

func (s *Cipher) Decrypt(ctx context.Context, key *kms.Key, data []byte) ([]byte, error)

Decrypt decrypts plainText with supplied key

func (*Cipher) Encrypt

func (s *Cipher) Encrypt(ctx context.Context, key *kms.Key, data []byte) ([]byte, error)

Encrypt encrypts plainText with supplied key

Jump to

Keyboard shortcuts

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