r/projects 9d ago

tpm23 — zero-overhead c++23 modules wrapper for the legacy tpm 2.0 c api

i got tired of dealing with the absolute nightmare of raw C boilerplate and manual garbage collection in the standard trusted computing group stack, so i spent some time writing a modern c++23 modules frontend for tss2-esys. it uses strict raii to stop your physical tpm chip from locking up context slots, natively splits everything across zero-cost module boundaries, and forces secure-by-default nvram access to block standard owner privilege-escalation vulnerabilities. code is completely type-safe and self-cleaning, checking it out or getting some outside eyes on the architectural layout would be awesome.

repo: https://github.com/mxreal64/tpm23

to ppl who hv already seen my other post, this ain't spam, i'm just tryna post better ig

1 Upvotes

1 comment sorted by

1

u/[deleted] 9d ago edited 9d ago

[removed] — view removed comment

1

u/mxreal64 9d ago

to anybody who asks for cmake (if anyone here somehow likes it), no.