Crypto1 for MIFARE Classic.
More...
#include <mifare_classic_crypto1.hpp>
|
|
| 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 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 |
| |
Crypto1 for MIFARE Classic.