Skip to content

Add fips-hash-offline.sh#10749

Open
holtrop-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
holtrop-wolfssl:add-fips-hash-offline-script
Open

Add fips-hash-offline.sh#10749
holtrop-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
holtrop-wolfssl:add-fips-hash-offline-script

Conversation

@holtrop-wolfssl

Copy link
Copy Markdown
Contributor

Description

This script calculates the FIPS integrity hash for an already-linked binary offline at build time.

Tested with fips/optest-140-3/static-building/optest-run-static-test.sh

Testing

How did you test?

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@holtrop-wolfssl holtrop-wolfssl self-assigned this Jun 22, 2026
Copilot AI review requested due to automatic review settings June 22, 2026 19:22
This script calculates the FIPS integrity hash for an already-linked
binary offline at build time.
@holtrop-wolfssl holtrop-wolfssl force-pushed the add-fips-hash-offline-script branch from dfce905 to 83f46f8 Compare June 22, 2026 19:23

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.

Pull request overview

Adds a new build-time utility script to compute and patch the wolfCrypt FIPS in-core integrity hash directly into an already-linked binary (intended for static/offline build flows), and documents how it differs from the existing source-patching workflow.

Changes:

  • Added fips-hash-offline.sh to compute the in-core integrity HMAC over ELF ranges and patch verifyCore[] in-place in the binary.
  • Updated fips-hash.sh header comments to clarify its runtime/scrape-and-patch-source behavior and reference the offline variant.
  • Listed the new script in SCRIPTS-LIST.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
SCRIPTS-LIST Adds an entry for the new offline FIPS hash patching script.
fips-hash.sh Adds documentation explaining purpose and when to use the offline script instead.
fips-hash-offline.sh New script implementing offline hash computation and in-place patching of verifyCore[] in a linked ELF binary.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread fips-hash-offline.sh
Comment thread fips-hash-offline.sh
@holtrop-wolfssl holtrop-wolfssl marked this pull request as ready for review June 22, 2026 19:31
@github-actions

Copy link
Copy Markdown

retest this please

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.

3 participants