LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
samcrypto.hpp
Go to the documentation of this file.
1
7#ifndef SAMCRYPTO_HPP
8#define SAMCRYPTO_HPP
9
10
14#include <logicalaccess/plugins/cards/samav/lla_cards_samav_api.hpp>
15#include <string>
16#include <vector>
17#include <iostream>
18
19namespace logicalaccess
20{
24class LLA_CARDS_SAMAV_API SAMDESfireCrypto : public DESFireCrypto
25{
26 public:
31
35 virtual ~SAMDESfireCrypto();
36
37 ByteVector authenticateHostP1(std::shared_ptr<DESFireKey> key, ByteVector encRndB,
38 unsigned char keyno);
39
40 void authenticateHostP2(unsigned char keyno, ByteVector encRndA1,
41 std::shared_ptr<DESFireKey> key);
42
43 ByteVector sam_crc_encrypt(ByteVector d_sessionKey, ByteVector vectordata,
44 std::shared_ptr<DESFireKey> key) const;
45};
46}
47
48#endif
AES cipher class.
DESFire cryptographic functions.
Definition: desfirecrypto.hpp:49
SAM cryptographic functions.
Definition: samcrypto.hpp:25
DES cipher class.
DESFireCrypto.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
Definition: asn1.hpp:9