Documentation ¶
Index ¶
Constants ¶
View Source
const ( CTAP_AUTH_DATA_FLAG_USER_PRESENT uint8 = 0b00000001 CTAP_AUTH_DATA_FLAG_USER_VERIFIED uint8 = 0b00000100 CTAP_AUTH_DATA_FLAG_ATTESTED_DATA_INCLUDED uint8 = 0b01000000 CTAP_AUTH_DATA_FLAG_EXTENSION_DATA_INCLUDED uint8 = 0b10000000 )
View Source
const ( CTAP_CLIENT_PIN_SUBCOMMAND_GET_RETRIES ctapClientPINSubcommand = 1 CTAP_CLIENT_PIN_SUBCOMMAND_GET_KEY_AGREEMENT ctapClientPINSubcommand = 2 CTAP_CLIENT_PIN_SUBCOMMAND_SET_PIN ctapClientPINSubcommand = 3 CTAP_CLIENT_PIN_SUBCOMMAND_CHANGE_PIN ctapClientPINSubcommand = 4 CTAP_CLIENT_PIN_SUBCOMMAND_GET_PIN_TOKEN ctapClientPINSubcommand = 5 )
Variables ¶
View Source
var CTAPCommandDescriptions = map[CTAPCommand]string{ CTAP_COMMAND_MAKE_CREDENTIAL: "CTAP_COMMAND_MAKE_CREDENTIAL", CTAP_COMMAND_GET_ASSERTION: "CTAP_COMMAND_GET_ASSERTION", CTAP_COMMAND_GET_INFO: "CTAP_COMMAND_GET_INFO", CTAP_COMMAND_CLIENT_PIN: "CTAP_COMMAND_CLIENT_PIN", CTAP_COMMAND_RESET: "CTAP_COMMAND_RESET", CTAP_COMMAND_GET_NEXT_ASSERTION: "CTAP_COMMAND_GET_NEXT_ASSERTION", }
Functions ¶
This section is empty.
Types ¶
type CTAPCommand ¶
type CTAPCommand uint8
const ( CTAP_COMMAND_MAKE_CREDENTIAL CTAPCommand = 0x01 CTAP_COMMAND_GET_ASSERTION CTAPCommand = 0x02 CTAP_COMMAND_GET_INFO CTAPCommand = 0x04 CTAP_COMMAND_CLIENT_PIN CTAPCommand = 0x06 CTAP_COMMAND_RESET CTAPCommand = 0x07 CTAP_COMMAND_GET_NEXT_ASSERTION CTAPCommand = 0x08 )
type CTAPCommandOptions ¶
type CTAPServer ¶
type CTAPServer struct {
// contains filtered or unexported fields
}
func NewCTAPServer ¶
func NewCTAPServer(client fido_client.FIDOClient) *CTAPServer
func (*CTAPServer) HandleMessage ¶
func (server *CTAPServer) HandleMessage(data []byte) []byte
type CTAPStatusCode ¶
type CTAPStatusCode byte
const ( CTAP1_ERR_SUCCESS CTAPStatusCode = 0x00 CTAP1_ERR_INVALID_COMMAND CTAPStatusCode = 0x01 CTAP1_ERR_INVALID_PARAMETER CTAPStatusCode = 0x02 CTAP1_ERR_INVALID_LENGTH CTAPStatusCode = 0x03 CTAP1_ERR_INVALID_SEQ CTAPStatusCode = 0x04 CTAP1_ERR_TIMEOUT CTAPStatusCode = 0x05 CTAP1_ERR_CHANNEL_BUSY CTAPStatusCode = 0x06 CTAP2_ERR_UNSUPPORTED_ALGORITHM CTAPStatusCode = 0x26 CTAP2_ERR_INVALID_CBOR CTAPStatusCode = 0x12 CTAP2_ERR_NO_CREDENTIALS CTAPStatusCode = 0x2E CTAP2_ERR_OPERATION_DENIED CTAPStatusCode = 0x27 CTAP2_ERR_MISSING_PARAM CTAPStatusCode = 0x14 CTAP2_ERR_PIN_INVALID CTAPStatusCode = 0x31 CTAP2_ERR_PIN_BLOCKED CTAPStatusCode = 0x32 CTAP2_ERR_PIN_AUTH_INVALID CTAPStatusCode = 0x33 CTAP2_ERR_NO_PIN_SET CTAPStatusCode = 0x35 CTAP2_ERR_PIN_REQUIRED CTAPStatusCode = 0x36 CTAP2_ERR_PIN_POLICY_VIOLATION CTAPStatusCode = 0x37 CTAP2_ERR_PIN_EXPIRED CTAPStatusCode = 0x38 )
Click to show internal directories.
Click to hide internal directories.