wolfSSL releases a new product; wolfCOSE a zero alloc C embbedded COSE stack
aidangarske
79 points
14 comments
May 30, 2026
Related Discussions
Found 5 related stories in 91.5ms across 8,961 title embeddings via pgvector HNSW
- WolfIP: Lightweight TCP/IP stack with no dynamic memory allocations 789c789c789c · 114 pts · March 12, 2026 · 57% similar
- OpenSSL 4.0.0 petecooper · 237 pts · April 14, 2026 · 47% similar
- Show HN: WolfStack – Proxmox-like server management in a single Rust binary wolfsoftware · 23 pts · March 08, 2026 · 47% similar
- WolfGuard: WireGuard with FIPS 140-3 cryptography 789c789c789c · 84 pts · March 24, 2026 · 45% similar
- Lib0xc: A set of C standard library-adjacent APIs for safer systems programming wooster · 120 pts · May 01, 2026 · 44% similar
Discussion Highlights (2 comments)
magicalhippo
For those of us not in the loop, COSE[1] is CBOR Object Signing and Encryption, with CBOR being a binary JSON alternative. It is patterned off JOSE, the JSON standards which includes favorites like JWK. [1]: https://www.rfc-editor.org/info/rfc9052/
Neywiny
2 things of notice in the readme as recently I've been in the efficient binary communication hunt: 1. .text size without clarifying the architecture, flags, and compiler is meaningless unless it's all rodata (and it's not) 2. Saying it takes 0 .bss and .data just means it allocates everything elsewhere and that can be helpful to know. Of course in compilation that'll also be dependent on how and for what it's built. To say it's zero alloc is incorrect or at best misleading. Here's a line of code that allocates a ton of stuff on the stack: https://github.com/wolfSSL/wolfCOSE/blob/b90b34abcba90aa7b8a... (previously pointed to another line but it was diluting my thesis). Anyone in embedded who's had to increase stack size to use a fancy function knows what I'm talking about. I'm looking at you, sscanf. Some of this code will allocate hundreds if not low thousands of bytes onto the stack. Which is maybe fine but don't say it's zero alloc just because it's all on the stack.