LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
logicalaccess::MifarePlusAESAuth Class Reference

#include <MifarePlusAESAuth.hpp>

Public Member Functions

 MifarePlusAESAuth (std::shared_ptr< ReaderCardAdapter > rca)
 
bool AESAuthenticate (std::shared_ptr< AES128Key > key, uint16_t keyslot) const
 

Private Member Functions

bool aes_auth_step2 (ByteVector rnd_b, std::shared_ptr< AES128Key > key) const
 
bool aes_auth_final (const ByteVector &rnd_a, const ByteVector &rnd_a_reader, std::shared_ptr< AES128Key > key) const
 

Private Attributes

std::shared_ptr< ReaderCardAdapterrca_
 

Detailed Description

Implement AES authentication operation for MifarePlus cards.

This is implemented as a separate object to use reuse between various mifare plus.

Constructor & Destructor Documentation

◆ MifarePlusAESAuth()

logicalaccess::MifarePlusAESAuth::MifarePlusAESAuth ( std::shared_ptr< ReaderCardAdapter rca)
explicit

Member Function Documentation

◆ aes_auth_final()

bool logicalaccess::MifarePlusAESAuth::aes_auth_final ( const ByteVector rnd_a,
const ByteVector rnd_a_reader,
std::shared_ptr< AES128Key key 
) const
private

◆ aes_auth_step2()

bool logicalaccess::MifarePlusAESAuth::aes_auth_step2 ( ByteVector  rnd_b,
std::shared_ptr< AES128Key key 
) const
private

◆ AESAuthenticate()

bool logicalaccess::MifarePlusAESAuth::AESAuthenticate ( std::shared_ptr< AES128Key key,
uint16_t  keyslot 
) const

Authenticate a key from a keyslot. This is used for switching security level or AES auth in SL1.

Member Data Documentation

◆ rca_

std::shared_ptr<ReaderCardAdapter> logicalaccess::MifarePlusAESAuth::rca_
private

The documentation for this class was generated from the following files: