LibLogicalAccess
2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
plugins
logicalaccess
plugins
readers
iso7816
commands
samav1iso7816commands.hpp
Go to the documentation of this file.
1
7
#ifndef LOGICALACCESS_SAMAV1ISO7816CARDPROVIDER_HPP
8
#define LOGICALACCESS_SAMAV1ISO7816CARDPROVIDER_HPP
9
10
#include <
logicalaccess/plugins/cards/iso7816/readercardadapters/iso7816readercardadapter.hpp
>
11
#include <
logicalaccess/plugins/readers/iso7816/iso7816readerunitconfiguration.hpp
>
12
#include <
logicalaccess/plugins/readers/iso7816/commands/samiso7816commands.hpp
>
13
#include <
logicalaccess/plugins/cards/samav/samcrypto.hpp
>
14
#include <
logicalaccess/plugins/cards/samav/samkeyentry.hpp
>
15
#include <
logicalaccess/plugins/cards/samav/samcrypto.hpp
>
16
#include <
logicalaccess/plugins/cards/samav/samcommands.hpp
>
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
27
namespace
logicalaccess
28
{
29
#define CMD_SAMAV1ISO7816 "SAMAV1ISO7816"
30
31
#ifdef SWIG
32
%
template
(SAMISO7816KeyEntrySETAV1Commands)
33
SAMISO7816Commands<KeyEntryAV1Information, SETAV1>;
34
#endif
35
39
class
LLA_READERS_ISO7816_API
SAMAV1ISO7816Commands
40
:
public
SAMISO7816Commands<KeyEntryAV1Information, SETAV1>
41
{
42
public
:
46
SAMAV1ISO7816Commands
();
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 */
logicalaccess::SAMAV1ISO7816Commands
The SAMAV1ISO7816 commands class.
Definition:
samav1iso7816commands.hpp:41
logicalaccess::SAMISO7816Commands
The SAMISO7816 commands class.
Definition:
samiso7816commands.hpp:52
logicalaccess::SAMKeyEntry
A SAMKeyEntry class.
Definition:
samkeyentry.hpp:90
iso7816readercardadapter.hpp
Default ISO7816 reader/card adapter.
iso7816readerunitconfiguration.hpp
logicalaccess
Definition:
asn1.hpp:9
samcommands.hpp
samcrypto.hpp
SAMDESfireCrypto header.
samiso7816commands.hpp
samkeyentry.hpp
SAMKeyEntry source.
Generated on Wed Mar 29 2023 13:50:38 for LibLogicalAccess by
1.9.6