aesgcm

package
v0.0.0-...-813b058 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AESGCM

type AESGCM struct{}

func NewAESGCM

func NewAESGCM() *AESGCM

func (AESGCM) Decrypt

func (aes AESGCM) Decrypt(password []byte,
	salt []byte,
	derivationIter int,
	derivationLength int,
	nonce []byte,
	ciphertext []byte,
) ([]byte, error)

Decrypt performs the decryption and returns the plaintext

func (AESGCM) Encrypt

func (aes AESGCM) Encrypt(
	password []byte,
	salt []byte,
	derivationIter int,
	derivationLength int,
	nonce []byte,
	plaintext []byte,
) ([]byte, error)

Encrypt performs the encryption and returns ciphertext

Jump to

Keyboard shortcuts

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