asymmetric

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BoxKeySize   = 32
	BoxNonceSize = 24
)

Variables

This section is empty.

Functions

func DecryptBox

func DecryptBox(senderPK, recipientSK, ciphertext []byte) ([]byte, error)

func EncryptBox

func EncryptBox(senderSK, recipientPK, plaintext []byte) ([]byte, error)

func GenerateBoxKeypair

func GenerateBoxKeypair() (keypairs, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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