Skip to content

Repository files navigation

go-ctap/yubico

Go Reference Go

Pure-Go support for Yubico-specific device information and identity.

Warning

This module is under active development. Its public API may change during v0.x.

Packages

  • yubico contains transport-independent device-information models, response parsing and canonical model naming.
  • yubico/transport/ctaphid reads device information through Yubico's CTAPHID vendor command 0x42, using github.com/go-ctap/ctap.
  • yubico/transport/pcsc reads device information through the Yubico management application on an exact PC/SC reader.
  • yubico/resolver identifies a smart-card target and distinguishes a missing Yubico management application from transport or protocol failures.

The CTAPHID transport accepts an existing vendor-command channel and does not take ownership of it. It sends logical command 0x42; CTAPHID framing adds the init-packet bit, so the on-wire command byte is 0xc2.

The PC/SC management AID, commands and status handling follow Yubico's Configuration Reference and the official yubikey-manager implementation.

Installation

go get github.com/go-ctap/yubico@latest

See go.mod for the required Go version.

Testing

go test ./...
go vet ./...

The test suite does not require hardware.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages