Ver Fonte

Merge passy from https://github.com/bettse/passy

WillyJL há 8 meses atrás
pai
commit
d3d0255027
3 ficheiros alterados com 11 adições e 7 exclusões
  1. 5 4
      passy/.catalog/README.md
  2. 5 1
      passy/README.md
  3. 1 2
      passy/passy_reader.c

+ 5 - 4
passy/.catalog/README.md

@@ -9,6 +9,8 @@
 🇹🇼
 🇹🇼
 🇺🇦
 🇺🇦
 🇦🇿
 🇦🇿
+🇨🇦
+🇮🇹
 
 
 (If it works for yours, submit a PR to add your country flag)
 (If it works for yours, submit a PR to add your country flag)
 
 
@@ -16,12 +18,11 @@
 
 
 eMTRD are secured to prevent people from reading the data on a passport just by bumping into it.  The data is secured using a key based on the passport number, date of birth, and date of expiry.  A real passport machine reads these values from the MRZ (Machine Readable Zone, the ones with ">") using a camera. For the app, you have to enter the values manually.  The app will then generate the key and read the data using a system called BAC(https://en.wikipedia.org/wiki/Basic_access_control).
 eMTRD are secured to prevent people from reading the data on a passport just by bumping into it.  The data is secured using a key based on the passport number, date of birth, and date of expiry.  A real passport machine reads these values from the MRZ (Machine Readable Zone, the ones with ">") using a camera. For the app, you have to enter the values manually.  The app will then generate the key and read the data using a system called BAC(https://en.wikipedia.org/wiki/Basic_access_control).
 
 
-## Notes:
- - Caches MRZ info to make subsequent use faster
-
 ## Limitations
 ## Limitations
- - Does not parse some of the optional DG (under 'advanced' menu)
+ - Avanced menu hidden unless Debug enabled
+ - Does not parse some DG under "advanced" menu
 
 
 ## To do
 ## To do
+ - Support PACE
  - Support more countries passports
  - Support more countries passports
 
 

+ 5 - 1
passy/README.md

@@ -10,6 +10,8 @@
 🇹🇼
 🇹🇼
 🇺🇦
 🇺🇦
 🇦🇿
 🇦🇿
+🇨🇦
+🇮🇹
 
 
 (If it works for yours, submit a PR to add your country flag)
 (If it works for yours, submit a PR to add your country flag)
 
 
@@ -18,9 +20,11 @@
 eMTRD are secured to prevent people from reading the data on a passport just by bumping into it.  The data is secured using a key based on the passport number, date of birth, and date of expiry.  A real passport machine reads these values from the MRZ (Machine Readable Zone, the ones with ">") using a camera. For the app, you have to enter the values manually.  The app will then generate the key and read the data using a system called BAC(https://en.wikipedia.org/wiki/Basic_access_control).
 eMTRD are secured to prevent people from reading the data on a passport just by bumping into it.  The data is secured using a key based on the passport number, date of birth, and date of expiry.  A real passport machine reads these values from the MRZ (Machine Readable Zone, the ones with ">") using a camera. For the app, you have to enter the values manually.  The app will then generate the key and read the data using a system called BAC(https://en.wikipedia.org/wiki/Basic_access_control).
 
 
 ## Limitations
 ## Limitations
- - Does not parse some of the optional DG (under 'advanced' menu)
+ - Avanced menu hidden unless Debug enabled
+ - Does not parse some DG under "advanced" menu
 
 
 ## To do
 ## To do
+ - Support PACE
  - Support other country passports
  - Support other country passports
 
 
 ## Generate asn:
 ## Generate asn:

+ 1 - 2
passy/passy_reader.c

@@ -424,9 +424,8 @@ NfcCommand passy_reader_read_dg2_or_dg7(PassyReader* passy_reader) {
         dg_ext = ".jpc";
         dg_ext = ".jpc";
         start = (uint8_t*)jpeg2k_cs - header;
         start = (uint8_t*)jpeg2k_cs - header;
     } else {
     } else {
-        furi_string_printf(path, "%s/%s%s", STORAGE_APP_DATA_PATH_PREFIX, dg_type, ".bin");
+        dg_ext = ".bin";
         start = 0;
         start = 0;
-        passy_log_buffer(TAG, "header", header, sizeof(header));
     }
     }
     furi_string_printf(path, "%s/%s%s", STORAGE_APP_DATA_PATH_PREFIX, dg_type, dg_ext);
     furi_string_printf(path, "%s/%s%s", STORAGE_APP_DATA_PATH_PREFIX, dg_type, dg_ext);
     FURI_LOG_I(TAG, "Writing offset %d to %s", start, furi_string_get_cstr(path));
     FURI_LOG_I(TAG, "Writing offset %d to %s", start, furi_string_get_cstr(path));