Repository navigation
Add an SRAM PUF build to the TI C2000 example - #660
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The Makefile allows an explicit HKDF=0 to override PUF’s required dependency, leaving PUF enabled without WOLF_HKDF, hmac.c, or kdf.c.
1 open issue
What changed in this PR
Adds a synthetic-SRAM PUF demo to the TI C2000 F28P55x example, exercising fuzzy-extractor enrollment and reconstruction without requiring a physical SRAM PUF source.
Changes:
- Adds
PUF=1with configurable BCH profiles and codeword counts, plus HKDF integration. - Tests clean and bit-flipped reconstruction and prints identity, key, and helper-data digest for host comparison.
- Documents the build options and explicitly acknowledges the existing development-only weak entropy seed.
| File | Description |
|---|---|
embedded/ti-c2000-f28p55x/Source/wolf_main.c |
Adds synthetic PUF tests and diagnostic output. |
embedded/ti-c2000-f28p55x/README.md |
Documents PUF options and hardware limitations. |
embedded/ti-c2000-f28p55x/Makefile |
Adds PUF build settings, dependencies, and standalone-image exclusions. |
embedded/ti-c2000-f28p55x/Header/user_settings.h |
Enables PUF test mode and acknowledges the development-only entropy seed. |
Review effort: Balanced
gasbytes
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds
PUF=1toembedded/ti-c2000-f28p55x: the wolfCrypt SRAM PUF fuzzy extractor (BCH + HKDF) on a synthetic SRAM image, withPUF_TandPUF_CWselecting the BCH profile and codeword count. The test enrolls and reconstructs cleanly (both timed) and withtbit flips per codeword, checks thatt+1flips are rejected, and prints the identity, derived key and a digest of the helper data so a host run of the same image can be compared. It depends on the wide-char PUF fix in wolfSSL/wolfssl#12350. This also definesWOLFSSL_ACCEPT_WEAK_ENTROPYbeside the existing dev-onlyWOLFSSL_GENSEED_FORTESTseed; without it every build other thanENTROPY=1stops at an#errorinrandom.con current wolfSSL master. Validated on a LAUNCHXL-F28P55X (PUF=1, default,HKDF=1andECC=1images). There is no physical-SRAM mode because the C28x boot ROM zeroes RAM at power-on.