Show HN: I wrote a ProtectServer FM in Zig and skipped the vendor compiler
Category: security
Tags: zig, hsm, cross-compilation, cryptography, embedded
Score: 6.0/10 (Innovation: 7, Technical: 8, Documentation: 6, Utility: 3)
This project documents writing a ProtectServer functionality module (FM) for Thales HSMs in Zig, bypassing the vendor's outdated GCC 4.6/4.8 cross-compiler. It covers cross-compiling C libraries, integrating libsecp256k1 and blst, secure key wiping, error handling, and an interesting discovery about differing deterministic ECDSA nonces between Zig's stdlib and libsecp256k1. The work is technically deep and niche, aimed at HSM developers with specific hardware.
Target audience: security engineers, embedded developers, cryptography engineers
Repository: https://808bits.com/articles/thales-protectserver-fm-zig/
View on Hacker News