auth

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthChallenge

type AuthChallenge [32]byte

type AuthSolution

type AuthSolution struct {
	Challenge AuthChallenge
	// Salting the challenge prevents a "chosen-text" attack
	Salt      Salt
	PublicKey ed25519.PublicKey
	Signature Signature
}

func (AuthSolution) Marshal

func (sol AuthSolution) Marshal(buf []byte) (int, error)

func (*AuthSolution) Unmarshal

func (sol *AuthSolution) Unmarshal(buf []byte) error

type Salt

type Salt [16]byte

type Signature

type Signature [64]byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳