crypt

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GMSL = 6        // game secret length
	SCHL = 14       // server challenge length
	CCHL = 8        // client challenge length
	CRTL = CCHL     // crypt key length, same as client challenge
	HDRL = 9 + SCHL // header length
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(gameSecret [GMSL]byte, clientChallenge [CCHL]byte, data []byte) []byte

func Encrypt

func Encrypt(gameSecret [GMSL]byte, challenge [CCHL]byte, data []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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