u2f

package
v0.0.0-...-812e201 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 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