auth

package
v0.0.0-...-55cdb59 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptLoginResponse

func DecryptLoginResponse(serverPrivateKey *rsa.PrivateKey, serverPublicKey, expectedVerifyToken, verifyToken, sharedSecret []byte, profile *Profile) ([]byte, error)

func NewCFB8Decrypter

func NewCFB8Decrypter(block cipher.Block, iv []byte) (cipher.Stream, error)

func NewCFB8Encrypter

func NewCFB8Encrypter(block cipher.Block, iv []byte) (cipher.Stream, error)

Types

type Profile

type Profile struct {
	ID         uuid.UUID         `json:"id"`
	Name       string            `json:"name"`
	Properties []ProfileProperty `json:"properties"`
}

type ProfileProperty

type ProfileProperty struct {
	Name      string `json:"name"`
	Value     string `json:"value"`
	Signed    bool   `json:"-"`
	Signature string `json:"signature"`
}

type Texture

type Texture struct {
	Url string `json:"url"`
}

type TextureProperties

type TextureProperties struct {
	Timestamp         int64    `json:"timestamp"`
	ProfileId         string   `json:"profileId"`
	ProfileName       string   `json:"profileName"`
	SignatureRequired bool     `json:"signatureRequired"`
	Textures          Textures `json:"textures"`
}

type Textures

type Textures struct {
	Skin *Texture `json:"SKIN,omitempty"`
	Cape *Texture `json:"CAPE,omitempty"`
}

Jump to

Keyboard shortcuts

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