mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 04:41:26 +04:00
* Update api_symbols.csv * Ultralight C 3des implementation added * Access check for Ultralight cards is now splitted into 2 functions one for ULC card and another for common * Ultralight C authentication command handlers added * Update api_symbols.csv and api_symbols.csv * Length added to ultralight encrypt function * New structure for storing 3des key added * Reseting of 3des_key added * des_context init/deinit added to poller * New poller step for ultralight c auth added * Added ultralight c des key to application * Renamed felica unlock scenes to more generic des auth scenes, because they are now used also for ultralight c * Show different menus for different ultralight card types * Update api_symbols.csv and api_symbols.csv * Some macro defines added * Different amount of pages will be now read for ultralight C and others * New unit test for ultralight C * Some comments and macro replacements * New function added to api * Now all data read checks mfulC separately * Adjusted listener to handle missing 3des_key properly * Now poller populates 3des_key after reading with auth to card data * Nfc: rename _3des_key to tdes_key * Bump API Symbols * Mute PVS Warnings Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
37 lines
892 B
C
37 lines
892 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;
|
|
MfUltralightC3DesAuthKey tdes_key;
|
|
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
|