browserbiometrics

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidBlockSize    = errors.New("invalid blocksize")
	ErrInvalidPKCS7Data    = errors.New("invalid PKCS7 data (empty or not padded)")
	ErrInvalidPKCS7Padding = errors.New("invalid padding on input")
)

Functions

func DetectAndInstallBrowsers

func DetectAndInstallBrowsers() error

func Main

func Main()

Types

type EncryptedRecvMessage

type EncryptedRecvMessage struct {
	AppID   string          `json:"appId"`
	Message EncryptedString `json:"message"`
}

type EncryptedString

type EncryptedString struct {
	IV      string `json:"iv"`
	Mac     string `json:"mac"`
	Data    string `json:"data"`
	EncType int    `json:"encryptionType"`
}

type GenericRecvMessage

type GenericRecvMessage struct {
	AppID   string      `json:"appId"`
	Message interface{} `json:"message"`
}

top level messages

type PayloadMessage

type PayloadMessage struct {
	Command   string `json:"command"`
	UserId    string `json:"userId"`
	Timestamp int64  `json:"timestamp"`
	PublicKey string `json:"publicKey"`
}

type ReceiveMessage

type ReceiveMessage struct {
	Timestamp int64  `json:"timestamp"`
	Command   string `json:"command"`
	Response  string `json:"response"`
	KeyB64    string `json:"keyB64"`
}

type SendMessage

type SendMessage struct {
	Command      string          `json:"command"`
	AppID        string          `json:"appId"`
	SharedSecret string          `json:"sharedSecret"`
	Message      EncryptedString `json:"message"`
}

type UnencryptedRecvMessage

type UnencryptedRecvMessage struct {
	AppID   string         `json:"appId"`
	Message PayloadMessage `json:"message"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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