encrypt

package
v2.0.49 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base64

type Base64 []byte

func (*Base64) MarshalJSON

func (b64 *Base64) MarshalJSON() ([]byte, error)

func (*Base64) UnmarshalJSON

func (b64 *Base64) UnmarshalJSON(data []byte) error

type KeyStruct

type KeyStruct struct {
	EncryptedKey Base64 `json:"encrypted_key"`
	Aad          Base64 `json:"associated_data"`
}

type WriterAESGCM

type WriterAESGCM struct {
	*concurrentWriter.ConcurrentWriter
	// contains filtered or unexported fields
}

func NewEncryptWriterAESGCM

func NewEncryptWriterAESGCM(dest io.Writer, aad []byte, keyTemplate *tink_go_proto.KeyTemplate, writer ...io.Writer) (*WriterAESGCM, error)

func (*WriterAESGCM) Close

func (c *WriterAESGCM) Close() error

func (*WriterAESGCM) GetKeysetHandle

func (c *WriterAESGCM) GetKeysetHandle() *keyset.Handle

Jump to

Keyboard shortcuts

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