mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 00:33:09 +00:00
fb9728d570
* New types for felica poller * New functions for felica data transmissions * Felica memory map extended with new fields * Init/deinit of mbedtls context added for felica encryption * Functions for session key and mac calculations added * Raw felica_poller implementation added * Removed MAC type parameter from check_mac function * Replaced all data fields needed for auth with context structure * Clean up felica_poller.c * Now RC block is filled with random numbers * New parameter for counting well-read blocks * Some cleanups * Felica file save and load logic added * Now we use card key from context for session key calculation * Copying card key to card block from auth context when both authentications succeeded, otherwise decrement blocks count by 1 * New felica poller event added * Moved some data structions to public namespace * FelicaAuthenticationContext struct moved to felica.h * Field type and name changed for better ones * Helper functions for felica_auth added to the app * New scene for felica card key input added * Logic for felica key input added * Auth context request processing added * Added block index definitions and replaced all index numbers with them * More macro defines * Replace nesting with do while block * New function for write operations mac calculation added * Replace nesting with do while block * Make functions static for now because they are used internally * Wrote some comments * Raw felica render implementation * New felica scenes * Adjusted felica dump rendering according design requirements * New felica scene added * Helper for switching scene during unlock added * Added warning scene and transfer to it * Moved unlock scene logic to separate files * Magic number changed * New felica render logic * Felica scenes adjusted according to design requirements * Felica poller cleanups * Some asserts added and some fixed * Replcaed asserts to checks in public api * Fixed pvs warnings in felica_poller * New event for felica_poller added for incomplete read actions * Handling of new poller event added * Update SConscript with felica files * Update api_symbols.csv with felica functions * Sync API versions Co-authored-by: あく <alleteam@gmail.com>
70 lines
3.1 KiB
C
70 lines
3.1 KiB
C
ADD_SCENE(nfc, start, Start)
|
|
ADD_SCENE(nfc, file_select, FileSelect)
|
|
ADD_SCENE(nfc, saved_menu, SavedMenu)
|
|
ADD_SCENE(nfc, save_name, SaveName)
|
|
ADD_SCENE(nfc, save_success, SaveSuccess)
|
|
ADD_SCENE(nfc, delete, Delete)
|
|
ADD_SCENE(nfc, delete_success, DeleteSuccess)
|
|
ADD_SCENE(nfc, restore_original_confirm, RestoreOriginalConfirm)
|
|
ADD_SCENE(nfc, restore_original, RestoreOriginal)
|
|
|
|
ADD_SCENE(nfc, detect, Detect)
|
|
ADD_SCENE(nfc, read, Read)
|
|
ADD_SCENE(nfc, info, Info)
|
|
ADD_SCENE(nfc, more_info, MoreInfo)
|
|
ADD_SCENE(nfc, supported_card, SupportedCard)
|
|
ADD_SCENE(nfc, select_protocol, SelectProtocol)
|
|
ADD_SCENE(nfc, extra_actions, ExtraActions)
|
|
ADD_SCENE(nfc, read_success, ReadSuccess)
|
|
ADD_SCENE(nfc, read_menu, ReadMenu)
|
|
ADD_SCENE(nfc, emulate, Emulate)
|
|
ADD_SCENE(nfc, rpc, Rpc)
|
|
ADD_SCENE(nfc, debug, Debug)
|
|
ADD_SCENE(nfc, field, Field)
|
|
ADD_SCENE(nfc, retry_confirm, RetryConfirm)
|
|
ADD_SCENE(nfc, exit_confirm, ExitConfirm)
|
|
ADD_SCENE(nfc, save_confirm, SaveConfirm)
|
|
|
|
ADD_SCENE(nfc, mf_ultralight_write, MfUltralightWrite)
|
|
ADD_SCENE(nfc, mf_ultralight_write_success, MfUltralightWriteSuccess)
|
|
ADD_SCENE(nfc, mf_ultralight_write_fail, MfUltralightWriteFail)
|
|
ADD_SCENE(nfc, mf_ultralight_wrong_card, MfUltralightWrongCard)
|
|
ADD_SCENE(nfc, mf_ultralight_unlock_menu, MfUltralightUnlockMenu)
|
|
ADD_SCENE(nfc, mf_ultralight_unlock_warn, MfUltralightUnlockWarn)
|
|
ADD_SCENE(nfc, mf_ultralight_key_input, MfUltralightKeyInput)
|
|
ADD_SCENE(nfc, mf_ultralight_capture_pass, MfUltralightCapturePass)
|
|
ADD_SCENE(nfc, felica_key_input, FelicaKeyInput)
|
|
ADD_SCENE(nfc, felica_unlock_warn, FelicaUnlockWarn)
|
|
|
|
ADD_SCENE(nfc, mf_desfire_more_info, MfDesfireMoreInfo)
|
|
ADD_SCENE(nfc, mf_desfire_app, MfDesfireApp)
|
|
|
|
ADD_SCENE(nfc, mf_classic_dict_attack, MfClassicDictAttack)
|
|
ADD_SCENE(nfc, mf_classic_detect_reader, MfClassicDetectReader)
|
|
ADD_SCENE(nfc, mf_classic_mfkey_nonces_info, MfClassicMfkeyNoncesInfo)
|
|
ADD_SCENE(nfc, mf_classic_mfkey_complete, MfClassicMfkeyComplete)
|
|
ADD_SCENE(nfc, mf_classic_update_initial, MfClassicUpdateInitial)
|
|
ADD_SCENE(nfc, mf_classic_update_initial_success, MfClassicUpdateInitialSuccess)
|
|
ADD_SCENE(nfc, mf_classic_update_initial_wrong_card, MfClassicUpdateInitialWrongCard)
|
|
ADD_SCENE(nfc, mf_classic_write_initial, MfClassicWriteInitial)
|
|
ADD_SCENE(nfc, mf_classic_write_initial_success, MfClassicWriteInitialSuccess)
|
|
ADD_SCENE(nfc, mf_classic_write_initial_fail, MfClassicWriteInitialFail)
|
|
ADD_SCENE(nfc, mf_classic_write_initial_wrong_card, MfClassicWriteInitialWrongCard)
|
|
|
|
ADD_SCENE(nfc, mf_classic_keys, MfClassicKeys)
|
|
ADD_SCENE(nfc, mf_classic_keys_list, MfClassicKeysList)
|
|
ADD_SCENE(nfc, mf_classic_keys_delete, MfClassicKeysDelete)
|
|
ADD_SCENE(nfc, mf_classic_keys_add, MfClassicKeysAdd)
|
|
ADD_SCENE(nfc, mf_classic_keys_warn_duplicate, MfClassicKeysWarnDuplicate)
|
|
|
|
ADD_SCENE(nfc, set_type, SetType)
|
|
ADD_SCENE(nfc, set_sak, SetSak)
|
|
ADD_SCENE(nfc, set_atqa, SetAtqa)
|
|
ADD_SCENE(nfc, set_uid, SetUid)
|
|
|
|
ADD_SCENE(nfc, slix_unlock_menu, SlixUnlockMenu)
|
|
ADD_SCENE(nfc, slix_key_input, SlixKeyInput)
|
|
ADD_SCENE(nfc, slix_unlock, SlixUnlock)
|
|
ADD_SCENE(nfc, slix_unlock_success, SlixUnlockSuccess)
|
|
|
|
ADD_SCENE(nfc, generate_info, GenerateInfo)
|