chacha20poly1305

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(provideSecretKey secure.ProvideSecretKey) secure.SymmAlgo

Types

type Chacha20Poly1305

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

func (*Chacha20Poly1305) Decrypt

func (s *Chacha20Poly1305) Decrypt(data []byte, pubKey string) ([]byte, error)

func (*Chacha20Poly1305) Encrypt

func (s *Chacha20Poly1305) Encrypt(data []byte, pubKey string) ([]byte, error)

func (*Chacha20Poly1305) SecretKey added in v0.4.0

func (s *Chacha20Poly1305) SecretKey() secure.ProvideSecretKey

Jump to

Keyboard shortcuts

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