SneppX-ALG
← Back to Blog

"SneppX-ALG v1.1.1 — Security Hardening, C HTTP Server & Packaging"

SneppX-ALG v1.1.1 is released, delivering rigorous C security hardening across all core modules, a standalone C HTTP server control plane with OAuth/Bearer auth middleware, and polished Python packaging.


What's New

1. C Security Hardening

  • Eliminated unsafe C functions (`gets`, `scanf`, `strcpy`, `sprintf`, `alloca`) across 8 core files.
  • Fixed `dilithium_zetas[256]` twiddle factor table corruption in ML-DSA signature verification.
  • Fixed Kyber NTT twiddle table, Montgomery reduction, and DRBG entropy requirements.
  • 2. C HTTP Server Control Plane

  • New `net/http/http_api.{h,c}` module registering `/v1/health`, `/v1/models`, `/v1/models/{id}`, and `/v1/generate` endpoints.
  • Route parameter capture (`{param}`) and TCP body reading loop satisfying `Content-Length`.
  • `examples/http_server_demo.c` demo binary with Bearer token authentication middleware.
  • 3. Packaging & Build

  • Standardized on Ninja generator across all CMake presets (`debug`, `release`, `asan`, `cuda`, `python`, `minimal`).
  • Automatic x64 MASM assembler resolution (`ml64`) for Windows MSVC + Ninja builds.
  • Python wheel metadata (`cp311-cp311-win_amd64`) with optional FastAPI imports.