crypto

package
v0.0.0-...-b1f961f Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data []byte, key uint32, overrideByteKey *byte) (outputData []byte, combinedCheck uint16, check0 uint16, check1 uint16, check2 uint16)

Decrypt decrypts the given data using MHF's custom decryption+checksum method. if a overrideByteKey value is supplied (!= nil), it will be used to override the derived/truncated key byte.

func Encrypt

func Encrypt(data []byte, key uint32, overrideByteKey *byte) (outputData []byte, combinedCheck uint16, check0 uint16, check1 uint16, check2 uint16)

Encrypt encrypts the given data using MHF's custom encryption+checksum method. if a overrideByteKey value is supplied (!= nil), it will be used to override the derived/truncated key byte.

Types

This section is empty.

Jump to

Keyboard shortcuts

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