keyring

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CipherType

type CipherType byte

func (*CipherType) Parse

func (c *CipherType) Parse(s string) error

func (CipherType) String

func (c CipherType) String() string

type Key

type Key struct {
	Operand       byte   `json:"operand"`
	Cipher        string `json:"cipher"`
	DecryptionKey []byte `json:"decryptionKey"`
	DecryptionIV  []byte `json:"decryptionIV"`
	Public        []byte `json:"public"`
	Private       []byte `json:"private"`
}

func (Key) MarshalBinary

func (k Key) MarshalBinary() ([]byte, error)

func (*Key) UnmarshalBinary

func (k *Key) UnmarshalBinary(buf []byte) error

type Keyring

type Keyring struct {
	Raw     []byte        `json:"raw"`
	Decoded [keyCount]Key `json:"decoded"`
}

func Extract

func Extract(gameData []byte) (*Keyring, error)

Extract extracts the keyring from a given game client.

func (*Keyring) Inject

func (kr *Keyring) Inject(gameData []byte) ([]byte, error)

Inject injects a keyring into a given game client and returns the modified client.

func (*Keyring) Regenerate

func (k *Keyring) Regenerate() error

Jump to

Keyboard shortcuts

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