Commit Graph
3937 Commits
Author SHA1 Message Date
tinooo 9bfd55ebe0 [PCF7931] draft of working & refacored DemodPCF7931()
demod function now seems to work basically. Not all error cases are handled I guess.
Also still debug prints, since I've to figure out the rest.

Also unclear, why limit the buffer size to 1-2 blocks only?
2025-03-12 17:38:53 +01:00
tinooo 3a8dc89dca [PCF7930] Refactoring & bugfix in READING
firs commit of a few to come.
First renames of variables, added a few comments to improve clarity.
Fixed types (int -> unitx_t , const, ...) - not all. still some to come

Fixed 2 conditions that did not work properly. Here some explanation:

  Imagine dest[i-1] = 255 and dest[i] = 0. THis would mean a clear falling edge.
  However, this code would not work, since dest[i] > lmax is not true.
  This condition only works if I have at least 1 sample between lmax and 255.
  Same for the other way around.
2025-03-12 17:38:27 +01:00
Philippe Teuwen f8abfc0731 hf 14a simaid: ignore premature HALT until RATS is reached 2025-02-05 23:31:11 +01:00
Philippe Teuwen 9933034566 hf 14a simaid: support reader requests without CID 2025-02-05 23:31:11 +01:00
Philippe Teuwen 24f474feaa hf 14a sim/simaid: Fix emulated RATS for -t 11 2025-02-05 23:31:11 +01:00
Jakub Kramarz e05c36d4ea cmdhfseos: change from SendCommandMix to SendCommandNG 2025-01-27 20:23:23 +01:00
Jakub Kramarz 2464cf60fd sam_seos, sam_picopass: switch from static allocation to BigBuf 2025-01-27 20:17:44 +01:00
Jakub Kramarz 15aea059ef cmdhficlass: change from SendCommandMix to SendCommandNG 2025-01-27 20:17:44 +01:00
Jakub Kramarz 7b34f462cd sam_picopass: add nr-mac extraction and epurse update prevention modes 2025-01-27 20:17:44 +01:00
Jakub Kramarz 53b67d1969 sam_picopass: shorter timeouts 2025-01-27 20:17:43 +01:00
Jakub Kramarz 9696c97639 sam_picopass: adapt implementation from sam_seos 2025-01-27 20:17:43 +01:00
Jakub Kramarz f3b831ca3e sam_seos: rename sam_set_card_detected 2025-01-27 20:17:43 +01:00
Jakub Kramarz b8d5daa77b sam_common: extract payload copy procedures 2025-01-26 14:36:44 +01:00
Iceman ecea5db50b Merge pull request #2728 from shuffle2/master
fix bigbuf allocators (tracing + malloc) overwriting each other
2025-01-25 01:11:49 +01:00
Shawn Hoffman aa286b4a16 fix bigbuf allocators (tracing + malloc) overwriting each other
* BigBuf.c: use s_ prefix for statics
* BigBuf_Clear_ext already calls clear_trace, so remove extra calls
* add some sanity checking of allocator args
* dont compare PDC_RNCR to false
2025-01-24 15:56:45 -08:00
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