LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
yubikeychallengecardservice.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_YUBIKEYCHALLENGECARDSERVICE_HPP
8#define LOGICALACCESS_YUBIKEYCHALLENGECARDSERVICE_HPP
9
12
13namespace logicalaccess
14{
15#define YUBIKEY_CHALLENGE_CARDSERVICE "YubikeyChallenge"
16
20class LLA_CARDS_YUBIKEY_API YubikeyChallengeCardService : public ChallengeCardService
21{
22 public:
27 explicit YubikeyChallengeCardService(std::shared_ptr<Chip> chip);
28
33
34 std::string getCSType() override;
35
36 ByteVector getChallenge() override;
37
38 ByteVector getResponse(const ByteVector &challenge, uint8_t slot = 0) override;
39
40 protected:
41 std::shared_ptr<YubikeyChip> getYubikeyChip() const
42 {
43 return std::dynamic_pointer_cast<YubikeyChip>(getChip());
44 }
45};
46}
47
48#endif
Definition: challengecardservice.hpp:13
The Yubikey challenge-response card service class.
Definition: yubikeychallengecardservice.hpp:21
std::shared_ptr< YubikeyChip > getYubikeyChip() const
Definition: yubikeychallengecardservice.hpp:41
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9
Yubikey chip.