blobshare

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key *[32]byte, nonce *[24]byte, data []byte) ([]byte, error)

func DeriveKey

func DeriveKey(password []byte, salt *[32]byte) (*[32]byte, error)

func Encrypt

func Encrypt(data []byte, key *[32]byte) ([]byte, *[24]byte, error)

func NewKey

func NewKey(password []byte) (*[32]byte, *[32]byte, error)

func PackNonce

func PackNonce(nonce *[24]byte, data []byte) []byte

func PackSaltNonce

func PackSaltNonce(salt *[32]byte, nonce *[24]byte, data []byte) []byte

func SetNrp

func SetNrp(nn, rr, pp int)

func UnpackNonce

func UnpackNonce(packed []byte) (nonce *[24]byte, data []byte, err error)

func UnpackSaltNonce

func UnpackSaltNonce(packed []byte) (salt *[32]byte, nonce *[24]byte,
	data []byte, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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