LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
samav1iso7816commands.hpp
Go to the documentation of this file.
1
7#ifndef LOGICALACCESS_SAMAV1ISO7816CARDPROVIDER_HPP
8#define LOGICALACCESS_SAMAV1ISO7816CARDPROVIDER_HPP
9
17
18#include <boost/interprocess/mapped_region.hpp>
19#include <boost/interprocess/sync/named_mutex.hpp>
20
21#include <string>
22#include <vector>
23#include <iostream>
24
25#define DEFAULT_SAM_CLA 0x80
26
27namespace logicalaccess
28{
29#define CMD_SAMAV1ISO7816 "SAMAV1ISO7816"
30
31#ifdef SWIG
32%template(SAMISO7816KeyEntrySETAV1Commands)
33 SAMISO7816Commands<KeyEntryAV1Information, SETAV1>;
34#endif
35
39class LLA_READERS_ISO7816_API SAMAV1ISO7816Commands
41{
42 public:
47
48 explicit SAMAV1ISO7816Commands(std::string);
49
53 virtual ~SAMAV1ISO7816Commands();
54
55 std::shared_ptr<SAMKeyEntry<KeyEntryAV1Information, SETAV1>>
56 getKeyEntry(unsigned char keyno) override;
57 std::shared_ptr<SAMKucEntry> getKUCEntry(unsigned char kucno) override;
58
59 void changeKUCEntry(unsigned char kucno, std::shared_ptr<SAMKucEntry> keyentry,
60 std::shared_ptr<DESFireKey> key) override;
61 void
62 changeKeyEntry(unsigned char keyno,
63 std::shared_ptr<SAMKeyEntry<KeyEntryAV1Information, SETAV1>> keyentry,
64 std::shared_ptr<DESFireKey> key) override;
65
66 void authenticateHost(std::shared_ptr<DESFireKey> key, unsigned char keyno) override;
67 void authenticateHost_AES_3K3DES(std::shared_ptr<DESFireKey> key,
68 unsigned char keyno);
69 void authenticateHostDES(std::shared_ptr<DESFireKey> key, unsigned char keyno);
70};
71}
72
73#endif /* LOGICALACCESS_SAMAV1ISO7816COMMANDS_HPP */
The SAMAV1ISO7816 commands class.
Definition: samav1iso7816commands.hpp:41
The SAMISO7816 commands class.
Definition: samiso7816commands.hpp:52
A SAMKeyEntry class.
Definition: samkeyentry.hpp:90
Default ISO7816 reader/card adapter.
Definition: asn1.hpp:9
SAMDESfireCrypto header.
SAMKeyEntry source.