Versions in this module Expand all Collapse all v0 v0.0.2 Jan 11, 2025 v0.0.1 Jan 11, 2025 Changes in this version + const ALGORITHM + const CALCULATE + const CALCULATE_ALL + const CHALLENGE + const DELETE + const HMAC_SHA1 + const HMAC_SHA256 + const HMAC_SHA512 + const HOTP + const IMF + const KEY + const LIST + const NAME + const NAME_LIST + const ONLY_INCREASING + const PROPERTY + const PUT + const REQUIRE_TOUCH + const RESET + const RESPONSE + const RES_AUTH_NOT_ENABLED + const RES_AUTH_REQUIRED + const RES_GENERIC_ERROR + const RES_MORE_DATA_AVAILABLE + const RES_NO_SPACE + const RES_NO_SUCH_OBJECT + const RES_RESPONSE_DOES_NOT_MATCH + const RES_SUCCESS + const RES_WRONG_SYNTAX + const SELECT + const SEND_REMAINING + const SET_CODE + const TOTP + const VALIDATE + const VERSION + var ErrAuthNotEnabled ykoError = ykoError + var ErrAuthRequired ykoError = ykoError + var ErrChallengeValidation ykoError = ykoError + var ErrGenericError ykoError = ykoError + var ErrNoSpace ykoError = ykoError + var ErrNoSuchObject ykoError = ykoError + var ErrResponseDoesNotMatch ykoError = ykoError + var ErrSomethingEles ykoError = ykoError + var ErrUnexpectedTag ykoError = ykoError + var ErrWrongSyntax ykoError = ykoError + type CalculateAllData struct + Code string + Name string + Touch bool + Type yubiKeyType + type Card interface + Transmit func(command []byte) ([]byte, error) + type Clock interface + Now func() time.Time + type ListData struct + Algo yubiKeyAlgo + Name string + Type yubiKeyType + type Rand interface + Read func(b []byte) (n int, err error) + type YKO struct + func New(c Card) *YKO + func (y *YKO) AuthRequired() bool + func (y *YKO) Calculate(name string) (string, error) + func (y *YKO) CalculateAll(name string) ([]CalculateAllData, error) + func (y *YKO) List() ([]ListData, error) + func (y *YKO) Select() error + func (y *YKO) Validate(password []byte) error