Commit Graph

63 Commits

Author SHA1 Message Date
RogueMaster
2ce7b4bdcc Merge branch 'ofwdev' into 420 2022-11-10 11:44:55 -05:00
Astra
820afd2aec NFC Unit tests part 1.1 (#1927)
* Mifare Classic 1/4K, 4/7b uid, NFC-A: NFC-A is not complete yet, as there are no 4b uid tests. Also, Mifare Classic tests don't cover the key cache yet.
* NFC unit tests require access to the NFC app
* Made nfc_device_save accept full path as an argument
* Move from cstrs to furi strings and fix logic
* nfc tests: fix memory leak
* nfc: add mf_classic_get_total_blocks() to API
* nfc tests: simplify nfc tests
* nfc: fix memory leak in shadow file saving
* nfc: fix set uid scene
* nfc: fix saving files
* nfc: fix preload nfc file path
* nfc: remove comments

Co-authored-by: Sergey Gavrilov <who.just.the.doctor@gmail.com>
Co-authored-by: gornekich <n.gorbadey@gmail.com>
Co-authored-by: あく <alleteam@gmail.com>
2022-11-11 01:20:35 +09:00
RogueMaster
2cc4dadf19 Merge branch 'pr/401' into 420 2022-11-04 13:18:52 -04:00
RogueMaster
5c219ee7e9 fmt 2022-10-28 23:06:17 -04:00
RogueMaster
f18e7725b4 Merge branch 'UNLEASHED' into 420 2022-10-28 13:09:03 -04:00
gornekich
93a6e17ce5 [FL-2933] Mf Classic initial write, update, detect reader (#1941)
* nfc: introduce nfc write
* nfc: add write logic
* nfc worker: add write state
* nfc: add mfc update logic
* nfc: add update success logic
* nfc: add custom card for detect reader
* nfc: update write logic
* nfc: add halt command, add notifications
* nfc: add write fail scene
* nfc: fixes and clean up
* nfc: fix navigation ad notifications
* nfc: fix detect reader nfc data setter

Co-authored-by: あく <alleteam@gmail.com>
2022-10-29 01:10:16 +09:00
Chris van Marle
a629a39017 MRTD Reference MrtdData from MrtdApplication 2022-10-28 11:48:09 +02:00
Chris van Marle
bd5b0da361 MRTD Move MrtdData to helper .h 2022-10-28 11:30:14 +02:00
Chris van Marle
ab3c74bbf0 Merge remote-tracking branch 'upstream/dev' into mrtd 2022-10-27 15:54:40 +02:00
Chris van Marle
7778904a39 MRTD move mrtd_helpers to nfc/helpers/ 2022-10-27 15:33:11 +02:00
Chris van Marle
496c059e39 MRTD save/load BAC params 2022-10-27 15:19:20 +02:00
Chris van Marle
46878d1526 MRTD show auth method used 2022-10-26 13:04:53 +02:00
Chris van Marle
fe2b5fa21e MRTD recognize MRTDs properly 2022-10-25 10:05:59 +02:00
RogueMaster
03524b97f1 Update mifare_ultralight.h 2022-10-18 02:53:50 -04:00
RogueMaster
39f8fd50c1 Merge branch 'pr/371' into 420 2022-10-18 02:52:53 -04:00
RogueMaster
4d350eda4e Merge pull request #369 from qistoph/mrtd
Mrtd TEST PR
2022-10-18 02:32:57 -04:00
Zeus Ricote
a7c897a09f nfc related changes 2022-10-18 05:46:20 +02:00
RogueMaster
8e3e72288c Merge branch 'UNLEASHED' into 420 2022-10-13 13:44:38 -04:00
Astra
55f8beef9f [FL-2876] MFC Improvements Part 2/2 (#1868)
* Remove keys incorrectly added by the key cache
* Improve responsiveness while checking for re-used keys and fix skipping keys when card is removed
* Actually check if the card is completely read
* Discard incorrect keys on a lower level
* nfc: clean up

Co-authored-by: gornekich <n.gorbadey@gmail.com>
2022-10-14 01:23:29 +09:00
RogueMaster
8d2dc1e689 Merge branch 'UNLEASHED' into 420 2022-10-12 00:13:02 -04:00
MX
6b5631e5b0 MFC Improvements Part 2/2
OFW PR 1868 by Astrrra
2022-10-12 05:29:42 +03:00
RogueMaster
0286a175b7 Merge branch 'ofwdev' into 420 2022-10-11 20:07:00 -04:00
Chris van Marle
5d0025dae3 Merge remote-tracking branch 'upstream/dev' into mrtd 2022-10-11 22:14:40 +02:00
Chris van Marle
6003f85601 MRTD Show month as text 2022-10-11 22:13:42 +02:00
Chris van Marle
d1a1cbff82 MRTD Read DG1 + small changes 2022-10-11 22:13:41 +02:00
Chris van Marle
0ab7d91fb4 MRTD proper parse DO87 multi byte length 2022-10-11 22:13:39 +02:00
Chris van Marle
d3d9b67544 MRTD remove some logs. Read DG1, try DG2 2022-10-11 22:13:38 +02:00
Chris van Marle
74faab36d9 MRTD display AIDs and DGs after auth 2022-10-11 22:13:37 +02:00
Chris van Marle
89d0c315b1 MRTD multiple changes 2022-10-11 22:13:36 +02:00
Chris van Marle
2ae8e97077 MRTD add file lookup by tag and EF.COM format 2022-10-11 22:13:35 +02:00
Chris van Marle
b5e420c11b MRTD handle BAC decrypt+unpad 2022-10-11 22:13:31 +02:00
Chris van Marle
374f2acb62 MRTD decrypt RX APDU 2022-10-11 22:13:29 +02:00
Chris van Marle
eaeb887d6f MRTD Secure Messaging added 2022-10-11 22:13:28 +02:00
Chris van Marle
ab5e564410 MRTD WIP secure messaging 2022-10-11 22:13:27 +02:00
Chris van Marle
c221c8947e MRTD scene for auth. read 2022-10-11 22:13:26 +02:00
Chris van Marle
0f242984fb MRTD fix KMRZ for BAC 2022-10-11 22:13:22 +02:00
Chris van Marle
6b968f7fea MRTD reread with auth 2022-10-11 22:13:20 +02:00
Chris van Marle
59efc2701d Merge branch 'dev' into mrtd 2022-10-11 22:13:13 +02:00
Chris van Marle
0b8a0c705c Minor warning fix in MRTD 2022-10-11 22:13:11 +02:00
Chris van Marle
b412843566 MRTD BAC support and some other improvements 2022-10-11 22:13:10 +02:00
Chris van Marle
27a74c4b87 MRTD generalize app selection 2022-10-11 22:13:07 +02:00
Chris van Marle
c4499e221f MRTD add mrtd_bac_keys 2022-10-11 22:13:06 +02:00
Chris van Marle
44c2299b70 MRTD use smaller data type of lengths, add sha1 test 2022-10-11 22:13:04 +02:00
Chris van Marle
0871d274eb MRTD add helper functions:
- Check digit
- KMRZ
2022-10-11 22:13:02 +02:00
Chris van Marle
08afd7c883 MRTD select and read file basics 2022-10-11 22:13:01 +02:00
Chris van Marle
315294f2cf MRTD work on reading EF.DIR and EF.CardAccess 2022-10-11 22:13:00 +02:00
Chris van Marle
82352705dd MRTD rename mrtd_data.auth.bac to mrtd_data.auth 2022-10-11 22:12:54 +02:00
Chris van Marle
3eb0c43756 [NFC] Recognize MRTD + initial menus 2022-10-11 22:12:13 +02:00
gornekich
2552278a3d [FL-2883] NFC: bank card rework reading (#1858)
* nfc: remove bank card save option
* nfc: remove bank card save from nfc device
* nfc: remove unused function in emv
* nfc: try several times to start emv application
* nfc: add AID display fallback for bank cards

Co-authored-by: あく <alleteam@gmail.com>
2022-10-12 02:13:12 +09:00
RogueMaster
b6409226e8 Merge branch 'UNLEASHED' into 420darkupds 2022-10-08 23:46:51 -04:00