LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
sagemkeydiversification.hpp
Go to the documentation of this file.
1#ifndef SAGEMKEYDIVERSIFICATION_HPP__
2#define SAGEMKEYDIVERSIFICATION_HPP__
3
6#include <vector>
7
8namespace logicalaccess
9{
10class LLA_CARDS_DESFIRE_API SagemKeyDiversification : public KeyDiversification
11{
12 public:
13 void initDiversification(ByteVector identifier, unsigned int AID,
14 std::shared_ptr<Key> key, unsigned char keyno,
15 ByteVector &diversify) override;
16 ByteVector getDiversifiedKey(std::shared_ptr<Key> key, ByteVector diversify) override;
17
19 {
20 }
22 {
23 }
24
25 std::string getKeyDiversificationType() override
26 {
27 return "Sagem";
28 }
29
30 void serialize(boost::property_tree::ptree &parentNode) override;
31 void unSerialize(boost::property_tree::ptree &node) override;
32 std::string getDefaultXmlNodeName() const override
33 {
34 return "SagemKeyDiversification";
35 }
36};
37}
38
39#endif
Definition: keydiversification.hpp:13
Definition: sagemkeydiversification.hpp:11
SagemKeyDiversification()
Definition: sagemkeydiversification.hpp:18
std::string getKeyDiversificationType() override
Definition: sagemkeydiversification.hpp:25
~SagemKeyDiversification()
Definition: sagemkeydiversification.hpp:21
std::string getDefaultXmlNodeName() const override
Get the default Xml Node name for this object.
Definition: sagemkeydiversification.hpp:32
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9