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 03:08:09 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <lib/nfc/protocols/mf_ultralight/mf_ultralight.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
MfUltralightAuthTypeNone,
|
|
|
|
MfUltralightAuthTypeReader,
|
|
|
|
MfUltralightAuthTypeManual,
|
|
|
|
MfUltralightAuthTypeXiaomi,
|
|
|
|
MfUltralightAuthTypeAmiibo,
|
|
|
|
} MfUltralightAuthType;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
MfUltralightAuthType type;
|
|
|
|
MfUltralightAuthPassword password;
|
|
|
|
MfUltralightAuthPack pack;
|
|
|
|
} MfUltralightAuth;
|
|
|
|
|
2024-03-19 14:43:52 +00:00
|
|
|
MfUltralightAuth* mf_ultralight_auth_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 03:08:09 +00:00
|
|
|
|
|
|
|
void mf_ultralight_auth_free(MfUltralightAuth* instance);
|
|
|
|
|
|
|
|
void mf_ultralight_auth_reset(MfUltralightAuth* instance);
|
|
|
|
|
|
|
|
bool mf_ultralight_generate_amiibo_pass(MfUltralightAuth* instance, uint8_t* uid, uint16_t uid_len);
|
|
|
|
|
|
|
|
bool mf_ultralight_generate_xiaomi_pass(MfUltralightAuth* instance, uint8_t* uid, uint16_t uid_len);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|