LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
MifarePlusAESAuth.hpp
Go to the documentation of this file.
1#pragma once
2
5#include <logicalaccess/plugins/cards/mifareplus/lla_cards_mifareplus_api.hpp>
6
7namespace logicalaccess
8{
16class LLA_CARDS_MIFAREPLUS_API MifarePlusAESAuth
17{
18 public:
19 explicit MifarePlusAESAuth(std::shared_ptr<ReaderCardAdapter> rca);
20
25 bool AESAuthenticate(std::shared_ptr<AES128Key> key, uint16_t keyslot) const;
26
27 private:
28 bool aes_auth_step2(ByteVector rnd_b, std::shared_ptr<AES128Key> key) const;
29 bool aes_auth_final(const ByteVector &rnd_a, const ByteVector &rnd_a_reader,
30 std::shared_ptr<AES128Key> key) const;
31
32 std::shared_ptr<ReaderCardAdapter> rca_;
33};
34}
AES128 key.
Definition: MifarePlusAESAuth.hpp:17
std::shared_ptr< ReaderCardAdapter > rca_
Definition: MifarePlusAESAuth.hpp:32
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80
MifareAccessInfo.
Definition: asn1.hpp:9