Commit Graph

20 Commits

Author SHA1 Message Date
Eric Betts
c83adbfb95 Add none FrameProtocol ref #30 2026-03-07 12:48:59 -08:00
Eric Betts
5c26fde1fa Clean up application.fam by cheating
Some checks failed
FAP: Build and lint / ufbt: Build for release branch (push) Failing after 0s
2026-03-03 19:00:21 -08:00
CinderSocket
132dc1860a feat: optimize ASN.1 memory usage and implement zero-copy transmission
- Strip unused XER, PER, and OER codec support via persistent skeleton gating.
- Refactor high-frequency ASN.1 logic to use stack allocation.
- Implement zero-copy transmission path using 32-byte header offset in UART TX buffer.
- Correct CCID header initialization and DER encoding buffer size calculation.
- Add ASN_DISABLE_* macros to application.fam for consistent gating across builds.
2026-03-03 12:44:41 -08:00
CinderSocket
3998719a1e chore: optimize ASN.1 footprint and fix sam_api calloc bug 📉
The app was definitely carrying some extra weight that we didn't need.

* Stripped the Bloat: I fully gated out the OER, PER, and XER support libraries. Even though some generation flags were there, the actual library code was still being linked. I also removed the random_fill logic since we aren't using it.
* Big Wins: The binary is now 7 KB smaller 📉. I verified this by checking the symbol table—all those extra codec functions are officially gone.
* Bug Fix: I found a pretty serious issue in sam_api.c where the local calloc was just a wrapper for malloc and wasn't actually zeroing out memory. I added a memset fix so we don't run into any weird non-deterministic crashes. 🛠️
* Stack Optimization: Since the ASN.1 path is much leaner now, I was able to safely drop the stack size in application.fam from 5 KB to 3 KB.

Refs: https://github.com/cindersocket/seader/issues/2
2026-03-03 12:44:41 -08:00
Eric Betts
7ae926abe9 Regenerate asn1 c files
Some checks failed
FAP: Build and lint / ufbt: Build for release branch (push) Failing after 0s
2026-03-02 08:26:13 -08:00
Eric Betts
1dae66fd7a longer version decoding 2026-01-15 20:33:42 -08:00
Eric Betts
b541f52b76 Change definition to implicit 2026-01-04 11:19:15 -08:00
Eric Betts
2910b13ded Process config card 2025-09-28 16:02:32 -07:00
Eric Betts
57a0488bc8 Use the commands the proxmark uses 2025-09-28 15:59:25 -07:00
Eric Betts
dbbf07156d Add SIO parsing from iceman/evildaemond talk 2025-04-04 11:57:31 -07:00
Eric Betts
ddf8a8906b exclude a little more from asn1c command 2024-07-28 18:58:27 -07:00
Eric Betts
21223f1055 Remove unrolling in loclass to save space in memory 2024-07-27 18:07:56 -07:00
Eric Betts
87813fc67d serial number 2024-02-24 16:51:38 -08:00
Eric Betts
b5290e7b15 add loclass 2023-12-02 20:13:27 -08:00
Eric Betts
dbe6339695 Add type 2023-07-03 17:09:09 -07:00
Eric Betts
a4fbfacbfa rename versiont to samversion 2023-07-03 17:00:54 -07:00
Eric Betts
3a00184049 add version asn1 2023-07-03 16:36:31 -07:00
Eric Betts
437e19f098 read error for MFC 2023-04-22 12:35:07 -07:00
Eric Betts
4a67feaeee regen asn1 c files 2023-04-22 12:30:12 -07:00
Eric Betts
a08952a2e6 initial import 2023-04-15 20:57:01 -07:00