blind

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAESGCMConfig

func NewAESGCMConfig() config.AESConfig

Types

type AESGCMConfig

type AESGCMConfig struct {
	Key   []byte
	Iv    []byte
	Nonce []byte
}

func (*AESGCMConfig) Decrypt

func (c *AESGCMConfig) Decrypt(ciphertext []byte) ([]byte, error)

func (*AESGCMConfig) Encrypt

func (c *AESGCMConfig) Encrypt(plaintext []byte) ([]byte, error)

func (*AESGCMConfig) Marshall

func (c *AESGCMConfig) Marshall() ([]byte, error)

func (*AESGCMConfig) Unmarshall

func (c *AESGCMConfig) Unmarshall(data []byte) error

Jump to

Keyboard shortcuts

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