M5Unit-NFC 0.0.3 git rev:59f5362
Loading...
Searching...
No Matches
m5::nfc::a::mifare::classic::Crypto1 Class Reference

Crypto1 for MIFARE Classic. More...

#include <mifare_classic_crypto1.hpp>

Inheritance diagram for m5::nfc::a::mifare::classic::Crypto1:

Public Member Functions

 Crypto1 (const uint64_t key48) noexcept
 
void init (const uint64_t key48) noexcept
 
uint32_t inject (uint32_t uid, uint32_t Nt, const bool encrypted=false) noexcept
 
bool step_with (const bool in, const bool enc=false) noexcept
 
uint8_t step8 (const uint8_t in, const bool enc=false) noexcept
 
uint32_t step32 (const uint32_t in, const bool enc=false) noexcept
 
uint8_t encrypt (uint8_t buf[8], const uint32_t Nr, const uint32_t Ar) noexcept
 
uint32_t encrypt (uint8_t *out, const uint8_t *in, const uint8_t in_len)
 
bool filter () const noexcept
 

Static Public Member Functions

static uint8_t oddparity8 (uint8_t x) noexcept
 
static bool fa (bool a, bool b, bool c, bool d) noexcept
 
static bool fb (bool a, bool b, bool c, bool d) noexcept
 
static bool fc (bool a, bool b, bool c, bool d, bool e) noexcept
 

Public Attributes

uint32_t _count {}
 

Detailed Description

Crypto1 for MIFARE Classic.