EMV Poller fix

This commit is contained in:
Methodius 2024-01-12 17:08:34 +09:00
parent e9454b629b
commit e8b468b492
No known key found for this signature in database
GPG Key ID: 122FA99A00B41679
5 changed files with 31 additions and 25 deletions

View File

@ -4,6 +4,7 @@
#include "protocols/emv/emv.h"
#include <furi.h>
#include <stdlib.h>
#include <string.h>
#define EMV_PROTOCOL_NAME "EMV"

View File

@ -93,7 +93,7 @@ Iso14443_4aData* emv_get_base_data(const EmvData* data);
// Getters and tests
const EmvApplication* emv_get_application(const EmvData* data);
//const EmvApplication* emv_get_application(const EmvData* data);
#ifdef __cplusplus
}

View File

@ -48,4 +48,8 @@ EmvError emv_poller_read_sfi_record(EmvPoller* instance, uint8_t sfi, uint8_t re
EmvError emv_poller_read_files(EmvPoller* instance);
EmvError emv_poller_read(EmvPoller* instance);
EmvError emv_poller_read(EmvPoller* instance);
#ifdef __cplusplus
}
#endif

View File

@ -21,6 +21,7 @@
#include <nfc/protocols/mf_ultralight/mf_ultralight.h>
#include <nfc/protocols/mf_classic/mf_classic.h>
#include <nfc/protocols/mf_desfire/mf_desfire.h>
#include <nfc/protocols/emv/emv.h>
#include <nfc/protocols/slix/slix_device_defs.h>
#include <nfc/protocols/st25tb/st25tb.h>
@ -40,6 +41,7 @@ const NfcDeviceBase* nfc_devices[NfcProtocolNum] = {
[NfcProtocolMfUltralight] = &nfc_device_mf_ultralight,
[NfcProtocolMfClassic] = &nfc_device_mf_classic,
[NfcProtocolMfDesfire] = &nfc_device_mf_desfire,
[NfcProtocolEmv] = &nfc_device_emv,
[NfcProtocolSlix] = &nfc_device_slix,
[NfcProtocolSt25tb] = &nfc_device_st25tb,
/* Add new protocols here */

View File

@ -1,5 +1,5 @@
entry,status,name,type,params
Version,v,50.2,,
Version,+,50.2,,
Header,+,applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h,,
Header,+,applications/services/bt/bt_service/bt.h,,
Header,+,applications/services/cli/cli.h,,
@ -120,8 +120,8 @@ Header,+,lib/nfc/nfc_device.h,,
Header,+,lib/nfc/nfc_listener.h,,
Header,+,lib/nfc/nfc_poller.h,,
Header,+,lib/nfc/nfc_scanner.h,,
Header,?,lib/nfc/protocols/emv/emv.h,,
Header,?,lib/nfc/protocols/emv/emv_poller.h,,
Header,+,lib/nfc/protocols/emv/emv.h,,
Header,+,lib/nfc/protocols/emv/emv_poller.h,,
Header,+,lib/nfc/protocols/iso14443_3a/iso14443_3a.h,,
Header,+,lib/nfc/protocols/iso14443_3a/iso14443_3a_listener.h,,
Header,+,lib/nfc/protocols/iso14443_3a/iso14443_3a_poller.h,,
@ -879,25 +879,24 @@ Function,+,elf_symbolname_hash,uint32_t,const char*
Function,+,empty_screen_alloc,EmptyScreen*,
Function,+,empty_screen_free,void,EmptyScreen*
Function,+,empty_screen_get_view,View*,EmptyScreen*
Function,?,emv_alloc,EmvData*,
Function,?,emv_copy,void,"EmvData*, const EmvData*"
Function,?,emv_free,void,EmvData*
Function,?,emv_get_application,const EmvApplication*,const EmvData*
Function,?,emv_get_base_data,Iso14443_4aData*,const EmvData*
Function,?,emv_get_device_name,const char*,"const EmvData*, NfcDeviceNameType"
Function,?,emv_get_uid,const uint8_t*,"const EmvData*, size_t*"
Function,?,emv_is_equal,_Bool,"const EmvData*, const EmvData*"
Function,?,emv_load,_Bool,"EmvData*, FlipperFormat*, uint32_t"
Function,?,emv_poller_get_processing_options,EmvError,EmvPoller*
Function,?,emv_poller_read,EmvError,EmvPoller*
Function,?,emv_poller_read_files,EmvError,EmvPoller*
Function,?,emv_poller_read_sfi_record,EmvError,"EmvPoller*, uint8_t, uint8_t"
Function,?,emv_poller_select_application,EmvError,EmvPoller*
Function,?,emv_poller_select_ppse,EmvError,EmvPoller*
Function,?,emv_reset,void,EmvData*
Function,?,emv_save,_Bool,"const EmvData*, FlipperFormat*"
Function,?,emv_set_uid,_Bool,"EmvData*, const uint8_t*, size_t"
Function,?,emv_verify,_Bool,"EmvData*, const FuriString*"
Function,+,emv_alloc,EmvData*,
Function,+,emv_copy,void,"EmvData*, const EmvData*"
Function,+,emv_free,void,EmvData*
Function,+,emv_get_base_data,Iso14443_4aData*,const EmvData*
Function,+,emv_get_device_name,const char*,"const EmvData*, NfcDeviceNameType"
Function,+,emv_get_uid,const uint8_t*,"const EmvData*, size_t*"
Function,+,emv_is_equal,_Bool,"const EmvData*, const EmvData*"
Function,+,emv_load,_Bool,"EmvData*, FlipperFormat*, uint32_t"
Function,+,emv_poller_get_processing_options,EmvError,EmvPoller*
Function,+,emv_poller_read,EmvError,EmvPoller*
Function,+,emv_poller_read_files,EmvError,EmvPoller*
Function,+,emv_poller_read_sfi_record,EmvError,"EmvPoller*, uint8_t, uint8_t"
Function,+,emv_poller_select_application,EmvError,EmvPoller*
Function,+,emv_poller_select_ppse,EmvError,EmvPoller*
Function,+,emv_reset,void,EmvData*
Function,+,emv_save,_Bool,"const EmvData*, FlipperFormat*"
Function,+,emv_set_uid,_Bool,"EmvData*, const uint8_t*, size_t"
Function,+,emv_verify,_Bool,"EmvData*, const FuriString*"
Function,-,erand48,double,unsigned short[3]
Function,-,erf,double,double
Function,-,erfc,double,double
@ -3640,7 +3639,7 @@ Variable,+,message_red_255,const NotificationMessage,
Variable,+,message_sound_off,const NotificationMessage,
Variable,+,message_vibro_off,const NotificationMessage,
Variable,+,message_vibro_on,const NotificationMessage,
Variable,?,nfc_device_emv,const NfcDeviceBase,
Variable,-,nfc_device_emv,const NfcDeviceBase,
Variable,-,nfc_device_mf_classic,const NfcDeviceBase,
Variable,-,nfc_device_mf_desfire,const NfcDeviceBase,
Variable,-,nfc_device_mf_ultralight,const NfcDeviceBase,

1 entry status name type params
2 Version v + 50.2
3 Header + applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h
4 Header + applications/services/bt/bt_service/bt.h
5 Header + applications/services/cli/cli.h
120 Header + lib/nfc/nfc_listener.h
121 Header + lib/nfc/nfc_poller.h
122 Header + lib/nfc/nfc_scanner.h
123 Header ? + lib/nfc/protocols/emv/emv.h
124 Header ? + lib/nfc/protocols/emv/emv_poller.h
125 Header + lib/nfc/protocols/iso14443_3a/iso14443_3a.h
126 Header + lib/nfc/protocols/iso14443_3a/iso14443_3a_listener.h
127 Header + lib/nfc/protocols/iso14443_3a/iso14443_3a_poller.h
879 Function + empty_screen_alloc EmptyScreen*
880 Function + empty_screen_free void EmptyScreen*
881 Function + empty_screen_get_view View* EmptyScreen*
882 Function ? + emv_alloc EmvData*
883 Function ? + emv_copy void EmvData*, const EmvData*
884 Function ? + emv_free void EmvData*
885 Function ? + emv_get_application emv_get_base_data const EmvApplication* Iso14443_4aData* const EmvData*
886 Function ? + emv_get_base_data emv_get_device_name Iso14443_4aData* const char* const EmvData* const EmvData*, NfcDeviceNameType
887 Function ? + emv_get_device_name emv_get_uid const char* const uint8_t* const EmvData*, NfcDeviceNameType const EmvData*, size_t*
888 Function ? + emv_get_uid emv_is_equal const uint8_t* _Bool const EmvData*, size_t* const EmvData*, const EmvData*
889 Function ? + emv_is_equal emv_load _Bool const EmvData*, const EmvData* EmvData*, FlipperFormat*, uint32_t
890 Function ? + emv_load emv_poller_get_processing_options _Bool EmvError EmvData*, FlipperFormat*, uint32_t EmvPoller*
891 Function ? + emv_poller_get_processing_options emv_poller_read EmvError EmvPoller*
892 Function ? + emv_poller_read emv_poller_read_files EmvError EmvPoller*
893 Function ? + emv_poller_read_files emv_poller_read_sfi_record EmvError EmvPoller* EmvPoller*, uint8_t, uint8_t
894 Function ? + emv_poller_read_sfi_record emv_poller_select_application EmvError EmvPoller*, uint8_t, uint8_t EmvPoller*
895 Function ? + emv_poller_select_application emv_poller_select_ppse EmvError EmvPoller*
896 Function ? + emv_poller_select_ppse emv_reset EmvError void EmvPoller* EmvData*
897 Function ? + emv_reset emv_save void _Bool EmvData* const EmvData*, FlipperFormat*
898 Function ? + emv_save emv_set_uid _Bool const EmvData*, FlipperFormat* EmvData*, const uint8_t*, size_t
899 Function ? + emv_set_uid emv_verify _Bool EmvData*, const uint8_t*, size_t EmvData*, const FuriString*
Function ? emv_verify _Bool EmvData*, const FuriString*
900 Function - erand48 double unsigned short[3]
901 Function - erf double double
902 Function - erfc double double
3639 Variable + message_sound_off const NotificationMessage
3640 Variable + message_vibro_off const NotificationMessage
3641 Variable + message_vibro_on const NotificationMessage
3642 Variable ? - nfc_device_emv const NfcDeviceBase
3643 Variable - nfc_device_mf_classic const NfcDeviceBase
3644 Variable - nfc_device_mf_desfire const NfcDeviceBase
3645 Variable - nfc_device_mf_ultralight const NfcDeviceBase