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