cipher

package
v0.0.0-...-7fd3488 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxPayloadSize = 16384       // Maximum payload size
	SaltSize       = 32          // Salt size
	SubKeyInfo     = "ss-subkey" // Subkey info
)

Variables

View Source
var SupportedCiphers = map[string]struct{}{
	"chacha20-ietf-poly1305": {},
	"aes-128-gcm":            {},
	"aes-192-gcm":            {},
	"aes-256-gcm":            {},
}

SupportedCiphers lists all supported encryption methods

Functions

This section is empty.

Types

type Cipher

type Cipher interface {
	StreamConn(net.Conn) net.Conn
	GetMethod() string
}

Cipher interface defines basic encryption operations

func NewCipher

func NewCipher(method, password string) (Cipher, error)

NewCipher creates a new cipher instance

Jump to

Keyboard shortcuts

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