crypto

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package crypto provides common errors and encryption configuration.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrDecryption is returned when decryption fails.
	ErrDecryption = errors.New("decryption error")
	// ErrEncryption is returned when encryption fails.
	ErrEncryption = errors.New("encryption error")
)

Functions

This section is empty.

Types

type DecrypterConfig added in v0.3.0

type DecrypterConfig struct {
	ClientCfg clientconfig.ClientConfig
}

DecrypterConfig is the configuration for the decrypter.

type EncrypterConfig added in v0.3.0

type EncrypterConfig struct {
	ClientCfg   clientconfig.ClientConfig
	Algorithm   *suite.AlgorithmSuite
	FrameLength int
}

EncrypterConfig is the configuration for the encrypter.

Jump to

Keyboard shortcuts

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