7#ifndef LOGICALACCESS_YUBIKEYISO7816COMMANDS_HPP
8#define LOGICALACCESS_YUBIKEYISO7816COMMANDS_HPP
17#define CMD_YUBIKEYISO7816 "YubikeyISO7816"
19#define YUBIKEY_INS_PUT 0x01
20#define YUBIKEY_INS_DELETE 0x02
21#define YUBIKEY_INS_SET_CODE 0x03
22#define YUBIKEY_INS_RESET 0x04
23#define YUBIKEY_INS_LIST 0xA1
24#define YUBIKEY_INS_CALCULATE 0xA2
25#define YUBIKEY_INS_VALIDATE 0xA3
26#define YUBIKEY_INS_CALCULATE_ALL 0xA4
27#define YUBIKEY_INS_SEND_REMAINING 0xA5
89 std::vector<TLVPtr> otp_getDeviceInfo()
override;
96 bool otp_queryFIPSMode()
override;
119 void oath_delete(
const ByteVector& name)
override;
135 std::vector<YubikeyListItem> oath_list()
override;
140 void oath_reset()
override;
168 std::vector<YubikeyCalculateResponse> oath_calculateAll(
const ByteVector& challenge,
bool truncate)
override;
174 ByteVector oath_sendRemainingInstruction()
override;
178 auto command = std::make_shared<ISO7816ISO7816Commands>();
179 command->setChip(getChip());
180 command->setReaderCardAdapter(getReaderCardAdapter());
190 return std::dynamic_pointer_cast<ISO7816ReaderCardAdapter>(
191 getReaderCardAdapter());
The Yubikey commands class.
Definition: yubikeycommands.hpp:116
The Yubikey ISO7816 commands base class. Based on https://docs.yubico.com/yesdk/users-manual/applicat...
Definition: yubikeyiso7816commands.hpp:36
std::shared_ptr< ISO7816Commands > getISO7816Commands() const override
Definition: yubikeyiso7816commands.hpp:176
std::shared_ptr< ISO7816ReaderCardAdapter > getISO7816ReaderCardAdapter() const
Get the ISO7816 reader/card adapter.
Definition: yubikeyiso7816commands.hpp:188
Default ISO7816 reader/card adapter.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
YubikeyProperty
Yubikey properties.
Definition: yubikeycommands.hpp:36
@ PROP_NONE
Definition: yubikeycommands.hpp:37
YubikeySlot
Yubikey slot. Only used for the old slot-based Yubikey API.
Definition: yubikeycommands.hpp:46
YubikeyHMAC
The HMAC algorithm.
Definition: yubikeycommands.hpp:23
Definition: yubikeycommands.hpp:75
Definition: yubikeycommands.hpp:67