Repository navigation
Conversation
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 two small standalone hash examples to
embedded/ti-c2000-f28p55xso the SHA-2 and SHA-3 call flow can be read in one file each, withoutwolf_main.cor the upstream test/benchmark harness.What it adds
Source/test_sha2.c(make SHA2=1) - SHA-224/256/384/512, SHA-512/224, SHA-512/256Source/test_sha3.c(make SHA3=1) - SHA3-224/256/384/512, SHAKE128, SHAKE256Source/c2000_board.c,Header/c2000_board.h- clocks, SCIA console and CPU Timer 0 for the two examplesEach example runs Init -> Update -> Final -> Free per variant on the FIPS 180-4 / FIPS 202 "abc" vector, a multi-Update streaming case, and a throughput loop through the generic
wc_Hash*API.Touches shared files
Makefile-SHA2=1/SHA3=1build only that family's wolfCrypt source; combining them with each other or any other toggle is a build errorHeader/user_settings.h-WOLF_SHA2_EXAMPLE/WOLF_SHA3_EXAMPLEselect one family, no RNG, no ML-DSA28p55x_wolf_flash_lnk.cmd- the.TI.ramfuncentries forsha3.obj/wc_mldsa.objare skipped when those objects are not builtREADME.md- section on the two examples, noting that the default image'stest.c/benchmark.ccome from the wolfSSL treeThe default image and
wolf_main.care unchanged.Hardware / test status
Validated on LAUNCHXL-F28P55X (XDS110, SCIA 115200 8N1): every KAT passes in both images and the throughput loop completes. The default image still builds.