encryption

package
v0.0.0-...-6d70f77 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAESGCM

func NewAESGCM(secret string) (cutevpn.Cipher, error)

Types

type AESGCM

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

func (AESGCM) Decrypt

func (a AESGCM) Decrypt(packet []byte) ([]byte, error)

func (AESGCM) Encrypt

func (a AESGCM) Encrypt(packet []byte) []byte

func (AESGCM) Overhead

func (a AESGCM) Overhead() int

type Plain

type Plain struct{}

func (Plain) Decrypt

func (a Plain) Decrypt(packet []byte) ([]byte, error)

func (Plain) Encrypt

func (a Plain) Encrypt(packet []byte) []byte

func (Plain) Overhead

func (a Plain) Overhead() int

Jump to

Keyboard shortcuts

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