u2f

package
v0.0.0-...-8ce7bc2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyDevice

func VerifyDevice(ctx context.Context, candidateKeyHandles []string) error

func VerifySignature

func VerifySignature(pub *ecdsa.PublicKey, challenge []byte, authResp *u2ftoken.AuthenticateResponse) bool

Types

type RegisterResponse

type RegisterResponse struct {
	PublicKeyBytes       []byte
	KeyHandleBytes       []byte
	AttestationCertBytes []byte
	SignatureBytes       []byte
}

func RegisterDevice

func RegisterDevice() (*RegisterResponse, error)

func (*RegisterResponse) MarshalKey

func (rr *RegisterResponse) MarshalKey() string

func (*RegisterResponse) PublicKey

func (rr *RegisterResponse) PublicKey() *ecdsa.PublicKey

func (*RegisterResponse) Unmarshal

func (rr *RegisterResponse) Unmarshal(data string) error

Jump to

Keyboard shortcuts

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