encryption

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSymmetricKey

func CreateSymmetricKey(length int) ([]byte, error)

CreateSymmetricKey creates a cryptographically secure random key of the specified length

func DecryptSymmetric added in v1.1.0

func DecryptSymmetric(in io.Reader, out io.Writer, key []byte) error

DecryptSymmetric uses AES-CRT with HMAC inside using single key for both

func EncryptSymmetric

func EncryptSymmetric(in io.Reader, out io.Writer, key []byte) error

EncryptSymmetric uses AES-CRT with HMAC inside using single key for both

Types

This section is empty.

Jump to

Keyboard shortcuts

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