yckms

package
v0.0.0-...-86c6960 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func YcCrypterFromKeyIDAndCredential

func YcCrypterFromKeyIDAndCredential(keyID string, saFilePath string) crypto.Crypter

Types

type YcCrypter

type YcCrypter struct {
	// contains filtered or unexported fields
}

func (*YcCrypter) Decrypt

func (crypter *YcCrypter) Decrypt(reader io.Reader) (io.Reader, error)

func (*YcCrypter) Encrypt

func (crypter *YcCrypter) Encrypt(writer io.Writer) (io.WriteCloser, error)

func (*YcCrypter) Name

func (crypter *YcCrypter) Name() string

type YcSymmetricKeyInterface

type YcSymmetricKeyInterface interface {
	GetKey() []byte
	Decrypt() error
	GetEncryptedKey() []byte
	ReadEncryptedKey(r io.Reader) error
	CreateKey() error
}

func YcSymmetricKeyFromKeyIDAndSdk

func YcSymmetricKeyFromKeyIDAndSdk(keyID string, sdk *ycsdk.SDK) YcSymmetricKeyInterface

Jump to

Keyboard shortcuts

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