symmetriccrypto

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKey

func GenerateKey(n int) ([]byte, error)

func Must

func Must[T any](v T, err error) T

Types

type Encoder

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

func NewEncoder

func NewEncoder(key []byte) (Encoder, error)

func NewEphemeralEncoder

func NewEphemeralEncoder(keySize int) (Encoder, error)

func (Encoder) Decrypt

func (e Encoder) Decrypt(data []byte) ([]byte, error)

func (Encoder) Encrypt

func (e Encoder) Encrypt(data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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