Skip to content

fix unconditional SHA512 opt-in for wolfHSM builds - #836

Merged
aidangarske merged 1 commit into
wolfSSL:masterfrom
bigbrett:wh-tz-fix-unconditional-sha512-enable
Jul 29, 2026
Merged

fix unconditional SHA512 opt-in for wolfHSM builds#836
aidangarske merged 1 commit into
wolfSSL:masterfrom
bigbrett:wh-tz-fix-unconditional-sha512-enable

Conversation

@bigbrett

Copy link
Copy Markdown
Contributor

Removes unconditional SHA348 and SHA512 opt-in for all wolfHSM server builds and relocates to TZ-specific user_settings.h block

Copilot AI review requested due to automatic review settings July 29, 2026 14:37

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

This PR adjusts wolfBoot’s wolfHSM build configuration so SHA-384/SHA-512 are no longer force-enabled for all WOLFHSM_SERVER=1 builds, and instead are enabled only for the TrustZone wolfHSM secure-side engine (WOLFCRYPT_TZ_WOLFHSM) via include/user_settings.h.

Changes:

  • Remove unconditional sha512.o linkage from the WOLFHSM_SERVER build path in options.mk.
  • Gate WOLFSSL_SHA384/WOLFSSL_SHA512 opt-in under WOLFCRYPT_TZ_WOLFHSM in include/user_settings.h.

Reviewed changes

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

File Description
options.mk Stops always linking SHA-512 for WOLFHSM_SERVER=1, relying on existing feature/hash-driven linkage where needed.
include/user_settings.h Restricts SHA-384/SHA-512 opt-in to TrustZone wolfHSM builds, keeping verify-only wolfHSM server builds from enabling them by default.

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

@bigbrett bigbrett self-assigned this Jul 29, 2026
@bigbrett
bigbrett marked this pull request as ready for review July 29, 2026 14:55
@bigbrett
bigbrett requested a review from aidangarske July 29, 2026 14:59

@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.

Thanks!

@aidangarske
aidangarske merged commit 4ab9891 into wolfSSL:master Jul 29, 2026
399 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.

3 participants