Commit Graph
3922 Commits
Author SHA1 Message Date
n-hutton 8dbe1c7b06 more 2025-01-21 23:52:33 +00:00
n-hutton acb7de9d8d more cleanup noticed just now 2025-01-21 23:51:26 +00:00
n-hutton 3eb0238481 appears to work - using normal mifare sim init
working demo

works

seems to work so far

more cleanup and works

working copy

working, clean one more pass

cleanup continues

back in buisness babyyy

final cleanup before PR I hope
2025-01-21 23:39:25 +00:00
Iceman 7082302a02 Merge pull request #2720 from henrygab/codeQL_fixes2
CodeQL -- Actual fixes
2025-01-15 19:02:17 +01:00
Henry Gabryjelski 715e876c62 Per explicit request of iceman1001 2025-01-15 09:22:18 -08:00
Henry Gabryjelski dc0e6f4f91 Fix regression
Found by iceman1001's code review ... THANK YOU!
2025-01-15 09:18:39 -08:00
iceman1001 cb7109e751 fix hf mf cload - now it allows for proper GDM ic to load mfc ev1 signature data. On uscuid ic which are more locked down it will failed with a message. Dont forget to enable signature for the gdm ic. 2025-01-15 16:07:13 +01:00
Henry Gabryjelski 6613ff7334 Workaround old GCC on Windows builds
This is supported for GCC >= version 13

See GCC bug 85487:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85487
2025-01-14 20:35:45 -08:00
Henry Gabryjelski 1c75690b1a Various codeQL fixes
Code was previously performing arithmetic in
various loop check conditions.  Integer promotion rules could cause unintended comparisons.

`spiffs` defined `fs->block_count` as `uint32_t`, but defined `spiffs_page_ix` as `uint16_t`.  Various overflow checks detected by CodeQL and fixed by checking for those conditions before looping.
2025-01-14 18:01:09 -08:00
Henry Gabryjelski 91be146ecb CodeQL fixes for "Comparison between A of type TypeA and B of wider type TypeB" 2025-01-14 17:54:58 -08:00
iceman1001 00f9403537 guard the smarttonfc command 2025-01-14 21:48:26 +01:00
iceman1001 fc06cafc2f moving emvsim.c since it needs smartcard functions 2025-01-14 21:40:14 +01:00
iceman1001 91f816a641 fix codeQL warning #309 2025-01-14 19:26:05 +01:00
iceman1001 bff0df5dcf looking if thinfilm sim works better now 2025-01-14 18:19:10 +01:00
iceman1001 1040fa8a86 style 2025-01-14 18:18:07 +01:00
Iceman 76ad5a5b51 Merge branch 'master' into cherry_pick_emv
Signed-off-by: Iceman <iceman@iuse.se>
2025-01-14 16:26:35 +01:00
nvx 29e0c51393 Changed hf mf info - now differentiates between full USCUID and cut down ZUID chips 2025-01-14 22:36:59 +10:00
Jakub Kramarz 15a37ef9df seos_sam: ran make style 2025-01-07 00:30:49 +01:00
Jakub Kramarz 508b63fd2e sam_seos: switch to samCommandGetContentElement2
As PLT-03273 OMNIKEY 5023 Software Developer Guide (https://www.hidglobal.com/documents/omnikey-5023-software-developer-guide) describes a command that returns additional information about SIO object containing PACS data, switching to more verbose one.
2025-01-07 00:15:35 +01:00
Jakub Kramarz 0f7574c982 sam_seos: add option to send arbitrary requests 2025-01-07 00:05:41 +01:00
Jakub Kramarz dfb5fa3de4 armsrc/sam_seos.c: add SoRootOID in sam_request_pacs
As described in 5326-903 OMNIKEY 5326 Software Developer Guide (https://www.hidglobal.com/documents/omnikey-5326-dfr-developers-guide). Seems like it should be here since the beginning, but worked fine without.
2025-01-07 00:05:41 +01:00
Jakub Kramarz c28ddd1d56 armsrc/sam_common.c: type cleanup 2025-01-07 00:05:41 +01:00
Jakub Kramarz d8ebec6baa armsrc/sam_seos.c: cleanup in sam_seos_copy_payload_nfc2sam 2025-01-07 00:05:41 +01:00
Jakub Kramarz 7b5ce7fbef armsrc/sam_seos.c: added support for cards with uid of length != 4 2025-01-07 00:05:41 +01:00
Jakub Kramarz 472d2e9330 armsrc/sam_common.c: fix sam_append_asn1_node 2025-01-07 00:05:41 +01:00
Jakub Kramarz c08e6c47c8 sam_seos: add suppport for HID SAM communication with SEOS cards, based on bettse/seader project 2025-01-07 00:05:33 +01:00
Jakub Kramarz 661b7bad22 armsrc/sam_picopass.c: extract common routines to sam_common.c 2025-01-07 00:04:48 +01:00
iceman1001 17338e2a5f style 2024-12-31 23:35:16 +01:00
Piotr Rzeszut b1ba5b3ea6 Merge branch 'master' into extend-spiffs-partition-last-page 2024-12-29 22:03:21 +01:00
Piotr Rzeszut 5261106098 Add spiffs operation checks, update changelog and documentation after moving t55xx configurations 2024-12-26 21:58:30 +01:00
Piotr Rzeszut dd17effaab Move T55XX config to spiffs file 2024-12-26 19:46:55 +01:00
Piotr Rzeszut d1db0aa799 Extending SPIFFS into last page of the SPI FLASH 2024-12-26 15:04:05 +01:00
Piotr Rzeszut 2fe0ba57b2 Change lf t55xx chk -m to read dictionary from spiffs file 2024-12-26 02:52:59 +01:00
Piotr Rzeszut dd646a64a6 Add additional file exists check to remove errors 2024-12-26 01:25:54 +01:00
Piotr Rzeszut d9a3e4f050 Refactor keys in flash statistics to check for files 2024-12-26 01:11:46 +01:00
Piotr Rzeszut 5af815f271 Mifare dictionary uploaded to spiffs using legacy function 2024-12-25 21:08:44 +01:00
Piotr Rzeszut d7ab949d1f Change hf mf fchk --mem to read dictionary from spiffs file 2024-12-25 19:14:05 +01:00
Piotr Rzeszut 0e0dcf4f4e Fix memory erase before writing keys dictionaries for SPI flash with different page number than 4 - always erase on the last page. 2024-12-07 16:48:59 +01:00
Piotr Rzeszut 88d9345bc7 Correct list of flash pages to be erased after extenging Mifare flash dictionary area 2024-12-07 13:12:01 +01:00
Lucifer Voeltner e416080ae8 make the help message even clearer, and fix a bug featuring me being unable to count 2024-12-03 10:23:41 +07:00
Lucifer Voeltner 4adf663300 Fix Gen 3 APDU block 0 SAK not being written correctly 2024-12-01 16:27:35 +07:00
Philippe Teuwen 830549b474 hf mf isen: add collect_fm11rf08s_without_backdoor option 2024-11-25 00:53:57 +01:00
Philippe Teuwen c4b8569d87 fix CmdHF14AMfISEN error handling 2024-11-24 12:26:07 +01:00
iceman1001 daff8228a2 Revert "Release v4.19552 - Orca"
This reverts commit a039ac18cc.
2024-11-22 12:15:19 +01:00
iceman1001 a039ac18cc Release v4.19552 - Orca 2024-11-22 12:15:19 +01:00
n-hutton 4a23fb05f0 Cherry pick POC of emv simulation 2024-11-21 19:23:03 +00:00
Iceman f66d5970be Merge branch 'master' into fix_spiffs_tree_linkname
Signed-off-by: Iceman <iceman@iuse.se>
2024-11-21 18:48:58 +01:00
ANTodorov 99d5a72879 fixed symlink name in mem spiffs tree
the used strtok(...,".")` is cutting the name to the first dot
linkname.txt.lnk -> linkname

with the fix it is
linkname.txt.lnk -> linkname.txt
2024-11-21 14:28:39 +02:00
ANTodorov 7b99bfa3d6 fix reported file/link names when mem spiffs wipe 2024-11-21 12:31:48 +02:00
iceman1001 ab676287d2 fix breaking builds 2024-11-20 23:48:14 +01:00