cryptography

package
v0.0.0-...-df34f37 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPasswordTooShort = errors.New("password is too short for derivation")
	ErrPasswordTooLong  = errors.New("password is too long for derivaation")
)
View Source
var ErrProcessingFailed = errors.New("panic while processing data chunks")

Functions

func DecryptStream

func DecryptStream(plaintext io.Writer, ciphertext io.Reader, key []byte, iv []byte) error

func DeriveBasicKey

func DeriveBasicKey(password []byte, length uint32) ([]byte, error)

func EncryptStream

func EncryptStream(ciphertext io.Writer, plaintext io.Reader, key []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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