Commit Graph

136 Commits

Author SHA1 Message Date
Gabriele Gristina
027ed5e558 Fixed build errors on osx 2020-12-31 00:33:42 +01:00
Philippe Teuwen
481f8a64a2 Merge pull request #1150 from aveao/emrtd-dumpdir
eMRTD dump: Allow specifying a custom dump directory
2020-12-30 09:54:31 +01:00
Ave
5d250339dd emrtd dump: Allow specifying a dump folder 2020-12-30 06:48:54 +03:00
Ave
9f29a839a7 emrtd info: Move EF_SOD print to a func, also add to online 2020-12-30 06:03:12 +03:00
Ave
80f035f7ab emrtd info: Improve EF_SOD wording 2020-12-30 05:57:11 +03:00
Ave
2679ea0980 emrtd info: Split EF_SOD into a separate section (only on offline) 2020-12-30 05:50:25 +03:00
Ave
ff4acf7005 emrtd: Improve comment on USA quirk workaround 2020-12-29 20:05:50 +03:00
Ave
a14b5f7b5f emrtd: Employ a workaround for data length of 0x80
This is to make US passport hashes read properly.
https://wf.lavatech.top/ave-but-random/emrtd-data-quirks#EF_SOD
2020-12-29 19:24:44 +03:00
Ave
d1ec96ed41 emrtd: Ensure that emrtd_parse_ef_sod_hash_algo returns -1 on errors too 2020-12-29 19:13:10 +03:00
Ave
71ac6369d8 emrtd: Account for hash algo quirks 2020-12-29 18:42:29 +03:00
Ave
040520d865 emrtd: Improve hashing logic, support SHA1 2020-12-29 17:56:29 +03:00
Ave
2c5c58d128 emrtd: Remove 'very very very very cursed' comment 2020-12-29 04:21:00 +03:00
Ave
aae3426f8e emrtd: Adjust an include comment 2020-12-29 04:09:53 +03:00
Ave
bc8c52931b emrtd: Split DG hash calc into emrtd_calc_dg_hash 2020-12-29 04:01:15 +03:00
Ave
f47b617a58 emrtd: Check emrtd_parse_ef_sod_hash_algo output 2020-12-29 03:51:30 +03:00
Ave
637e017975 emrtd: Support SHA256 2020-12-29 03:39:01 +03:00
Ave
5a9d474765 emrtd: Better coverity bits for hash verif 2020-12-29 02:15:15 +03:00
Ave
dbe5d9ac9a emrtd info (online): Add basic hash verification support 2020-12-29 02:08:30 +03:00
Ave
7e2b10d413 emrtd info (offline): Add basic hash verification support 2020-12-29 01:55:18 +03:00
Ave
9e7d515c37 emrtd info: Don't print EF_SOD info 2020-12-23 23:52:31 +03:00
Ave
a1762fa4a3 emrtd: Mark biometrics as EAC-only and introduce the concept 2020-12-23 23:21:54 +03:00
Ave
9987ebf534 emrtd: Use memcmp for JPEG headers 2020-12-23 23:08:34 +03:00
Ave
4962cb84ec emrtd: Note that MRZ option is for passports (TD3) only 2020-12-23 22:37:51 +03:00
Ave
fab5092c03 Merge remote-tracking branch 'origin/master' into emrtd 2020-12-23 22:29:21 +03:00
Ave
0272a3b63e emrtd: Move a lot of size values from int to size_t 2020-12-23 22:27:05 +03:00
Philippe Teuwen
8d4acbe3a6 make style 2020-12-23 19:51:10 +01:00
Ave
c3ed99e388 emrtd: Parse hashes on EF_SOD 2020-12-22 05:52:48 +03:00
Ave
f1a8345fac emrtd: Add a skip feature to emrtd_lds_get_data_by_tag 2020-12-22 05:29:37 +03:00
Ave
b505c5f4d8 emrtd: Read file hash data from EF_SOD 2020-12-22 05:01:42 +03:00
Ave
8c1e4168cf emrtd: make style pass 2020-12-22 02:30:26 +03:00
Ave
a05bdecaaf emrtd: make top tag skipping on emrtd_lds_get_data_by_tag optional 2020-12-22 02:28:37 +03:00
Ave
c3cc3b2a80 emrtd: split lds tag det to a different func and improve emrtd_lds_get_data_by_tag 2020-12-22 02:22:28 +03:00
Philippe Teuwen
2385ea9bb7 fix issue #1127 2020-12-20 01:13:20 +01:00
Philippe Teuwen
c828caff33 emrtd: add --mrz 2020-12-19 22:05:10 +01:00
Philippe Teuwen
3098f01dd9 emrtd: non-BAC: tested! remove debug print 2020-12-19 20:53:16 +01:00
Philippe Teuwen
669eea1f74 emrtd: hide SOD todo for now 2020-12-19 19:44:26 +01:00
Philippe Teuwen
97eaab27a1 emrtd: remove few hardcoded filenames 2020-12-19 18:01:19 +01:00
Philippe Teuwen
e16249252e emrtd: remove last defs and integrate SOD in com lists 2020-12-19 17:58:22 +01:00
Philippe Teuwen
34cc523546 emrtd: add helper fcts to search the table 2020-12-19 17:37:28 +01:00
Philippe Teuwen
019f4a7e94 emrtd table: pace flag 2020-12-19 17:12:08 +01:00
Philippe Teuwen
e277eaaab2 emrtd: add COM description, add big DG table 2020-12-19 16:48:37 +01:00
Ave
9bed791026 emrtd: Account for undocumented 5F85 tag 2020-12-19 16:25:09 +03:00
Ave
3e4a03ec33 emrtd: Implement a better fix for parsing empty tags 2020-12-19 16:17:44 +03:00
Ave
263eb57749 emrtd: fixes for some belgian passports 2020-12-19 16:14:27 +03:00
Ave
d23ebec93c emrtd: Make emrtd_mrz_determine_separator less hacky 2020-12-19 07:25:28 +03:00
Ave
9945107016 hf emrtd info: Replace padding with spaces on names 2020-12-19 07:08:39 +03:00
Ave
013a8abcd8 hf emrtd info: Fix segfaults on mononyms 2020-12-19 07:01:03 +03:00
Ave
333afad302 hf emrtd info: Fixes for hungarian passports 2020-12-19 06:49:21 +03:00
Ave
88f0de3176 emrtd: Use .jp2 ext when saving JPG 2000 files 2020-12-19 05:28:21 +03:00
Ave
6ca472fc8f emrtd: Dump image from EF_DG7 too 2020-12-19 03:27:48 +03:00