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.
Click to show internal directories.
Click to hide internal directories.