Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AID_MGR = AID{0xa0, 0x00, 0x00, 0x05, 0x27, 0x47, 0x11, 0x17}
View Source
var AID_OATH = AID{0xa0, 0x00, 0x00, 0x05, 0x27, 0x21, 0x01}
View Source
var AID_OTP = AID{0xA0, 0x00, 0x00, 0x05, 0x27, 0x20, 0x01}
View Source
var GP_INS_SELECT byte = 0xA4
View Source
var OTP_INS_YK2_REQ byte = 0x01
View Source
var SLOT_DEVICE_SERIAL byte = 0x10
Functions ¶
func YubiReaderDiscovererNew ¶
func YubiReaderDiscovererNew(ctx context.Context, eventChanel chan DeviceChangeEvent) (oath.ReaderDiscoverer, error)
Types ¶
type DeviceChangeEvent ¶
type DevicePresence ¶
type DevicePresence int
const ( Present DevicePresence = iota Removed DevicePresence = iota )
type UsbDeviceMonitor ¶
type UsbDeviceMonitor interface {
Monitor() (chan DeviceChangeEvent, error)
}
func UdevDeviceMonitorNew ¶
func UdevDeviceMonitorNew(ctx context.Context) (UsbDeviceMonitor, error)
type UsbMonitor ¶
type UsbMonitor interface { }
type YubikeyReaderStatus ¶
type YubikeyReaderStatus struct {
// contains filtered or unexported fields
}
func (YubikeyReaderStatus) Availability ¶
func (yrs YubikeyReaderStatus) Availability() oath.ReaderPresence
func (YubikeyReaderStatus) Get ¶
func (YubikeyReaderStatus) Get() oath.Reader
func (YubikeyReaderStatus) Id ¶
func (yrs YubikeyReaderStatus) Id() string
Click to show internal directories.
Click to hide internal directories.