mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 15:00:46 +00:00
acc39a4bc0
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
31 lines
805 B
C
31 lines
805 B
C
#pragma once
|
|
|
|
#include <nfc/protocols/mf_classic/mf_classic.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct MfClassicKeyCache MfClassicKeyCache;
|
|
|
|
MfClassicKeyCache* mf_classic_key_cache_alloc(void);
|
|
|
|
void mf_classic_key_cache_free(MfClassicKeyCache* instance);
|
|
|
|
bool mf_classic_key_cache_load(MfClassicKeyCache* instance, const uint8_t* uid, size_t uid_len);
|
|
|
|
void mf_classic_key_cache_load_from_data(MfClassicKeyCache* instance, const MfClassicData* data);
|
|
|
|
bool mf_classic_key_cahce_get_next_key(
|
|
MfClassicKeyCache* instance,
|
|
uint8_t* sector_num,
|
|
MfClassicKey* key,
|
|
MfClassicKeyType* key_type);
|
|
|
|
bool mf_classic_key_cache_save(MfClassicKeyCache* instance, const MfClassicData* data);
|
|
|
|
void mf_classic_key_cache_reset(MfClassicKeyCache* instance);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|