mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 06:50:21 +00:00
585b7f963d
merge ofw commit
35 lines
853 B
C
35 lines
853 B
C
#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;
|
|
|
|
MfUltralightAuth* mf_ultralight_auth_alloc(void);
|
|
|
|
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
|