Commit graph

150 commits

Author SHA1 Message Date
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
Philippe Teuwen bdcf84f90d fix emrtd info offline bug 2020-12-19 00:59:27 +01:00
Philippe Teuwen 7a9e129ad9 hf emrtd info: add option to load from files 2020-12-19 00:19:11 +01:00
Ave 24b0e042cb Resolve coverity 308206 and 308207 2020-12-19 01:41:04 +03:00
Ave 5a4e77d7af hf emrtd info: Parse and print info about EF_DG12 2020-12-19 01:05:09 +03:00
Ave fa21787531 hf emrtd info: Split EF_DG1 into its own func, read file list 2020-12-18 23:52:42 +03:00
Ave 8e89eb1206 hf emrtd info: fancier output for files 2020-12-18 22:33:13 +03:00
Ave Ozkal 27b7ecf1cd emrtd: Complete EF_DG11 support on hf emrtd info 2020-12-18 21:25:46 +03:00
Ave Ozkal 36cf0be239 emrtd: Basic EF_DG11 support on hf emrtd info 2020-12-18 21:12:57 +03:00
Iceman dd1c0dc045
Merge pull request #1119 from aveao/emrtd
eMRTD additions
2020-12-18 09:00:00 +01:00
Ave 4f3d3f8ac4 emrtd: Fix insecure read on emrtd_read_file 2020-12-18 05:03:06 +03:00
Ave 69a124762a emrtd: Code cleanup on emrtd_bump_ssc 2020-12-18 04:44:11 +03:00
Ave cd21765acc emrtd: Move EF_CardAccess dump to before auth to ensure that it is dumped even without auth 2020-12-18 04:28:14 +03:00
Ave 9b4e0c212f emrtd: Remove unnecessary memcpys from two dump functions 2020-12-18 04:26:39 +03:00
Philippe Teuwen ffb1b662ac allowing user timeouts in 14b apdus 2020-12-18 02:15:42 +01:00
Ave 79e9875b43 emrtd: Validate date further 2020-12-18 03:29:21 +03:00
Ave 027f4e5adc emrtd: Use toupper 2020-12-18 03:26:26 +03:00
Ave 3312230e80 emrtd: Remove debug line 2020-12-18 03:15:14 +03:00
Ave 45d55106c6 emrtd: Auto-convert document number to uppercase 2020-12-18 03:13:06 +03:00
Ave ffb7111835 emrtd: Ensure that DOB and doc expiry lengths are correct 2020-12-18 03:06:42 +03:00
Ave fbed338dce emrtd: don't check for EF_CardAccess, and dump it on hf emrtd dump 2020-12-18 02:39:48 +03:00
iceman1001 09c9f85206 Merge branch 'master' of github.com:RfidResearchGroup/proxmark3 2020-12-17 22:20:17 +01:00
iceman1001 f0d3cdec67 fix 308197 coverity 2020-12-17 22:20:07 +01:00
iceman1001 814e7c2536 fix 308198 coverity 2020-12-17 22:15:33 +01:00
Philippe Teuwen 254235237e emrtd: fix emrtd_read_binary params 2020-12-17 22:06:44 +01:00
iceman1001 f48f85469e fix 308195 coverity 2020-12-17 21:56:56 +01:00
Ave a04d67e828 emrtd: Dump image when dumping EF_DG2 2020-12-17 23:23:31 +03:00
Ave f3d5c60c10 emrtd: Dump cert when dumping EF_SOD 2020-12-17 22:45:41 +03:00
Ave ae7090a47e emrtd: Dump image when dumping EF_DG5 2020-12-17 22:22:41 +03:00
Ave a9f28adabf emrtd: Improve emrtd_lds_get_data_by_tag to account for variable data sizes 2020-12-17 22:22:26 +03:00
Ave 205885cb15 emrtd: Improve card presence check logic 2020-12-17 18:18:25 +03:00
iceman1001 b3c7dd64c6 fix auth logic, and compiler warning 2020-12-17 14:46:57 +01:00
iceman1001 646b0eefb7 Merge branch 'master' of github.com:RfidResearchGroup/proxmark3 2020-12-17 08:40:03 +01:00
Ave 8cb25b742a emrtd: Remove redundant padding code 2020-12-17 05:12:54 +03:00
Ave b31a610566 emrtd: Fix passport composite + change print order 2020-12-17 05:08:56 +03:00
Ave 8e6736edd1 emrtd: Verify composite check digits 2020-12-17 04:28:26 +03:00
Ave b362101b54 emrtd: Split emrtd_mrz_verify_check_digit into two funcs 2020-12-17 04:19:54 +03:00
Ave 8e72830686 emrtd: Merge two functions into emrtd_lds_get_data_by_tag 2020-12-17 04:15:00 +03:00
Ave 2e3e4835ed emrtd: Support ID cards on hf emrtd info 2020-12-17 04:03:09 +03:00
Ave 9066aa1d26 emrtd: Support passports on hf emrtd info 2020-12-17 03:44:39 +03:00
iceman1001 76da4ce427 change 14b apdu - longer timeout, emrt now autopad too short document numbers 2020-12-17 02:09:26 +03:00
iceman1001 4b9ffef63a change 14b apdu - longer timeout, emrt now autopad too short document numbers 2020-12-17 00:00:26 +01:00
Ave 503e48d409 emrtd: Start work on the hf emrtd info command 2020-12-16 23:53:40 +03:00
Ave ac3392402f emrtd: Split auth into a separate function
This is done to prepare for info command
2020-12-16 22:18:49 +03:00
Ave 84873aa3cf emrtd: pad document number 2020-12-16 21:21:11 +03:00
Ave fbfe1d051c emrtd: loads of renames 2020-12-15 02:55:23 +03:00
Ave 4969a0bca3 emrtd: Fix a crash 2020-12-15 02:19:42 +03:00
Ave 3339ba110f emrtd: Split BAC into its own function 2020-12-14 20:09:20 +03:00
Ave bc00e92af0 emrtd: Switch from size_t to int to make CI happy 2020-12-14 19:08:03 +03:00
Ave 457311ffd9 emrtd: make clean pass 2020-12-14 18:25:49 +03:00
Ave d197d5df34 emrtd: Complete non-BAC support 2020-12-14 18:24:24 +03:00
Ave 0bca61aa99 emrtd: Continue work on supporting non-BAC passports 2020-12-14 18:05:45 +03:00
Ave eaea632eb3 emrtd: Join secure and insecure reads 2020-12-14 17:45:53 +03:00
Ave 19922e1d23 emrtd: Clean up includes, further document used files 2020-12-14 17:30:58 +03:00
Ave 8ed358e3be emrtd: Mark DESKey as const 2020-12-14 17:28:54 +03:00
Ave 1e16b2d2d9 emrtd: Code cleanup, impl PRNG 2020-12-14 17:26:47 +03:00
Ave a5aed0dffd emrtd: Force dumping EF_SOD 2020-12-14 02:42:37 +03:00
Ave 41a7bdef1c emrtd: Detect file list on card and dump what is available 2020-12-14 02:11:39 +03:00
Ave a85e8a40d4 emrtd: Get file list from ef_com (but not parse yet) 2020-12-14 01:30:11 +03:00
Ave d5d5cc1fe6 emrtd: Add further checks to secure_select and secure_read 2020-12-14 00:21:10 +03:00
Ave 21fc1d634f emrtd: Add 14b support and better presence detection 2020-12-13 01:49:17 +03:00
Ave ac82a80afa emrtd: Read more files, save read files 2020-12-12 22:10:40 +03:00
Ave d1d5d8ee74 emrtd: account for larger file reads, read ef_dg2 2020-12-12 21:54:23 +03:00
Ave c2531e7ed0 emrtd: Rename from hf emrtd info to dump, code cleanup 2020-12-12 21:19:51 +03:00
Ave 3dd4f580c8 emrtd: Have secure_select_file accept string filenames 2020-12-12 21:11:17 +03:00
Ave 42e6763ea1 emrtd: Improve and clean asn1datalength and asn1fieldlength 2020-12-12 20:55:16 +03:00
Ave a895fbd3c6 emrtd: Implement secure_read_file 2020-12-12 20:26:54 +03:00
Ave cf3b0bcbe1 emrtd: Impl check_cc 2020-12-12 04:34:16 +03:00
Ave 3e2e0299ff emrtd: Impl secure read binary 2020-12-12 01:50:54 +03:00
Ave e93a258f88 emrtd: make style pass 2020-12-11 21:17:15 +03:00
Ave 831672be20 emrtd: Clean up secure select file 2020-12-11 21:14:47 +03:00
Ave 2f42b875e1 emrtd: Impl secure file select 2020-12-11 21:07:52 +03:00
Ave ca3471ffdf emrtd: calculate session keys 2020-12-11 06:52:26 +03:00
Ave 70ecfdf502 emrtd: Verify rnd_ifd 2020-12-11 06:27:47 +03:00
Ave 332b67655c emrtd: Improve logging 2020-12-11 05:38:27 +03:00
Ave ca04c44384 emrtd: Implement retail_mac and external authentication 2020-12-11 04:53:17 +03:00
Ave 6086ede2ed emrtd: split 3des encryption to its own func 2020-12-11 04:53:17 +03:00
Ave 69be5f8b25 emrtd: calculate S and e_ifd 2020-12-11 04:53:17 +03:00
Ave a7478443b3 emrtd: calc kenc and kmac 2020-12-11 04:53:17 +03:00
Ave b0fb5bfff6 emrtd: Reduce code repetition 2020-12-11 04:53:17 +03:00
Ave 49e4321382 emrtd: Get challenge
also some code "cleanup" which makes this whole shit less mem safe but
shh
2020-12-11 04:53:17 +03:00
Ave 9f6309cc23 emrtd: Add kseed calc, fix kmrz calc 2020-12-11 04:53:17 +03:00
Ave 1149c56696 emrtd: Add kmrz calc 2020-12-11 04:53:17 +03:00
Ave 84a1059d93 emrtd: Add BAC check 2020-12-11 04:53:17 +03:00
Ave 885f4b52fd emrtd: Rename select_aid to select_file 2020-12-11 04:53:17 +03:00
Ave 2c5ab21948 emtrd: Switch magic numbers over to named defines 2020-12-11 04:53:17 +03:00
Ave bee075ad09 emrtd: Push initial code
Can only read EF_CardAccess currently, but has abstractions for
selecting AIDs and reading files, which was the Hard Part so far

Based heavily on mrpkey by rfidiot
2020-12-11 04:53:17 +03:00