fidoauth

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

fidoauth implements the fido1 authentication API

Index

Constants

View Source
const (
	CmdRegister     = 0x01
	CmdAuthenticate = 0x02
	CmdVersion      = 0x03

	CtrlCheckOnly                     AuthCtrl = 0x07 // Check if the provided key is valid
	CtrlEnforeUserPresenceAndSign     AuthCtrl = 0x03 // confirm with user then sign
	CtrlDontEnforeUserPresenceAndSign AuthCtrl = 0x08 // just sign without confirming
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthCtrl

type AuthCtrl uint8

type AuthenticatorAuthReq

type AuthenticatorAuthReq struct {
	Ctrl             AuthCtrl
	ChallengeParam   [32]byte
	ApplicationParam [32]byte
	KeyHandle        []byte
}

type AuthenticatorRegisterReq

type AuthenticatorRegisterReq struct {
	ChallengeParam   [32]byte
	ApplicationParam [32]byte
}

type AuthenticatorRequest

type AuthenticatorRequest struct {
	Command uint8
	Param1  uint8
	Data    []byte

	Register     *AuthenticatorRegisterReq
	Authenticate *AuthenticatorAuthReq
}

func DecodeAuthenticatorRequest

func DecodeAuthenticatorRequest(raw []byte) (*AuthenticatorRequest, error)

type AuthenticatorResponse

type AuthenticatorResponse struct {
	Data   []byte
	Status uint16
}

Jump to

Keyboard shortcuts

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