Skip to content

Add ECDSA and SHA-384 image-verify timings to the TI C2000 example - #650

Merged
mattia-moffa merged 1 commit into
wolfSSL:masterfrom
dgarske:c28x_ecdsa_bench
Oct 28, 2026
Merged

mattia-moffa merged 1 commit into
wolfSSL:masterfrom
dgarske:c28x_ecdsa_bench

Conversation

@dgarske

@dgarske dgarske commented Oct 24, 2026

Copy link
Copy Markdown
Member

Adds ECC384=1 (SECP384R1), ECCFAST=1 (drops WOLFSSL_SP_SMALL for the windowed SP path) and ECCBENCH=1, which swaps the test and benchmark harness for ECDSA sign/verify, ECDH and SHA-256/SHA-384 image-hash timings over a flash-resident 128 KB array. The stock benchmark reports nothing for ECC here, because the example builds with NO_ASN and bench_ecc() compiles its ECDSA section out behind that macro. The README gains the resulting table. ECCFAST=1 needs the companion SP recode fix in wolfSSL/wolfssl#11889. Validated on a LAUNCHXL-F28P55X.

@dgarske dgarske self-assigned this Oct 24, 2026
@dgarske
dgarske marked this pull request as ready for review October 26, 2026 18:29
@dgarske
dgarske requested a review from aidangarske October 26, 2026 18:35

@aidangarske aidangarske left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Skoll Code Review

Scan type: review

Overall recommendation: COMMENT
Findings: 5 total — 5 posted, 0 skipped
5 finding(s) posted as inline comments (see file-level comments below)

Posted findings

  • [Medium] P-384 lacks an independent correctness test — embedded/ti-c2000-f28p55x/Source/wolf_main.c:879-881
  • [Medium] Failed iterations still produce successful-operation timing figures — embedded/ti-c2000-f28p55x/Source/wolf_main.c:693-701,746-770,802-810,849-859
  • [Medium] The flash-image benchmark repeatedly hashes only a 4 KiB allocation — embedded/ti-c2000-f28p55x/Source/wolf_main.c:672-677
  • [Medium] The documented ECCFAST option omits its required wolfSSL dependency — embedded/ti-c2000-f28p55x/README.md:94
  • [Low] ECC_USER_CURVES comment still says P-256 only — embedded/ti-c2000-f28p55x/Header/user_settings.h:238

Review generated by Skoll

Comment thread embedded/ti-c2000-f28p55x/Source/wolf_main.c
Comment thread embedded/ti-c2000-f28p55x/Source/wolf_main.c Outdated
Comment thread embedded/ti-c2000-f28p55x/Source/wolf_main.c Outdated
Comment thread embedded/ti-c2000-f28p55x/README.md Outdated
Comment thread embedded/ti-c2000-f28p55x/Header/user_settings.h
@mattia-moffa
mattia-moffa merged commit 321f457 into wolfSSL:master Oct 28, 2026
210 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.

4 participants