scard

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const GP_INS_SELECT byte = 0xA4
View Source
const OTP_INS_YK2_REQ byte = 0x01
View Source
const SLOT_DEVICE_SERIAL byte = 0x10

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}

Functions

func YubiKeyNew

func YubiKeyNew(ctx context.Context, scardCtx *scard.Context, reader string) (yubikey.YubiKey, error)

Types

type AID

type AID []byte

type INS

type INS byte
const (
	PUT            INS = 0x01
	DELETE         INS = 0x02
	SET_CODE       INS = 0x03
	RESET          INS = 0x04
	LIST           INS = 0xa1
	CALCULATE      INS = 0xa2
	VALIDATE       INS = 0xa3
	CALCULATE_ALL  INS = 0xa4
	SEND_REMAINING INS = 0xa5
)

type Tlv

type Tlv struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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