Skip to content

Add an SRAM PUF build to the TI C2000 example - #660

Merged
gasbytes merged 1 commit into
wolfSSL:masterfrom
dgarske:c2000_puf
Dec 2, 2026
Merged

gasbytes merged 1 commit into
wolfSSL:masterfrom
dgarske:c2000_puf

Conversation

@dgarske

@dgarske dgarske commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Adds PUF=1 to embedded/ti-c2000-f28p55x: the wolfCrypt SRAM PUF fuzzy extractor (BCH + HKDF) on a synthetic SRAM image, with PUF_T and PUF_CW selecting the BCH profile and codeword count. The test enrolls and reconstructs cleanly (both timed) and with t bit flips per codeword, checks that t+1 flips 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 defines WOLFSSL_ACCEPT_WEAK_ENTROPY beside the existing dev-only WOLFSSL_GENSEED_FORTEST seed; without it every build other than ENTROPY=1 stops at an #error in random.c on current wolfSSL master. Validated on a LAUNCHXL-F28P55X (PUF=1, default, HKDF=1 and ECC=1 images). There is no physical-SRAM mode because the C28x boot ROM zeroes RAM at power-on.

@dgarske dgarske self-assigned this Dec 1, 2026
Copilot AI balanced review requested due to automatic review settings December 1, 2026 21:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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=1 with 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

Comment thread embedded/ti-c2000-f28p55x/Makefile Resolved
@gasbytes gasbytes assigned wolfSSL-Bot and unassigned gasbytes Dec 2, 2026
@gasbytes
gasbytes merged commit a663683 into wolfSSL:master Dec 2, 2026
221 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants