NFC refactoring (#3050)
"A long time ago in a galaxy far, far away...." we started NFC subsystem refactoring.
Starring:
- @gornekich - NFC refactoring project lead, architect, senior developer
- @gsurkov - architect, senior developer
- @RebornedBrain - senior developer
Supporting roles:
- @skotopes, @DrZlo13, @hedger - general architecture advisors, code review
- @Astrrra, @doomwastaken, @Hellitron, @ImagineVagon333 - quality assurance
Special thanks:
@bettse, @pcunning, @nxv, @noproto, @AloneLiberty and everyone else who has been helping us all this time and contributing valuable knowledges, ideas and source code.
2023-10-24 07:08:09 +04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <nfc/protocols/mf_classic/mf_classic.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct MfClassicKeyCache MfClassicKeyCache;
|
|
|
|
|
2024-03-19 23:43:52 +09:00
|
|
|
MfClassicKeyCache* mf_classic_key_cache_alloc(void);
|
NFC refactoring (#3050)
"A long time ago in a galaxy far, far away...." we started NFC subsystem refactoring.
Starring:
- @gornekich - NFC refactoring project lead, architect, senior developer
- @gsurkov - architect, senior developer
- @RebornedBrain - senior developer
Supporting roles:
- @skotopes, @DrZlo13, @hedger - general architecture advisors, code review
- @Astrrra, @doomwastaken, @Hellitron, @ImagineVagon333 - quality assurance
Special thanks:
@bettse, @pcunning, @nxv, @noproto, @AloneLiberty and everyone else who has been helping us all this time and contributing valuable knowledges, ideas and source code.
2023-10-24 07:08:09 +04:00
|
|
|
|
|
|
|
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
|