Skip to content

20260403-WC_FIPS_186#10131

Merged
douzzer merged 2 commits intowolfSSL:masterfrom
douzzer:20260403-WC_FIPS_186
Apr 6, 2026
Merged

20260403-WC_FIPS_186#10131
douzzer merged 2 commits intowolfSSL:masterfrom
douzzer:20260403-WC_FIPS_186

Conversation

@douzzer
Copy link
Copy Markdown
Contributor

@douzzer douzzer commented Apr 4, 2026

wolfcrypt: add additional enforcement of correct digest sizes in signature gen and verify ops:

  • add WC_FIPS_186_4, WC_FIPS_186_4_PLUS, WC_FIPS_186_5, and WC_FIPS_186_5_PLUS feature macros.
  • add support for WC_HASH_CUSTOM_MIN_DIGEST_SIZE, WC_HASH_CUSTOM_MAX_DIGEST_SIZE, and
    WC_HASH_CUSTOM_MAX_BLOCK_SIZE, for use with custom digest algorithms.
  • add SigOidMatchesKeyOid() helper function and WC_MIN_DIGEST_SIZE macro.
  • add additional size and OID agreement checks for sig gen and verify ops.
  • update ecc_test_vector() with FIPS 186-5 vectors.

tested with

wolfssl-multi-test.sh ...
pr-check
'.*Wconversion.*'
'.*cust-kernel.*'

Co-authored-by: @Frauschi

@douzzer douzzer added the For This Release Release version 5.9.1 label Apr 4, 2026
@douzzer douzzer force-pushed the 20260403-WC_FIPS_186 branch from 1873acb to 69da051 Compare April 4, 2026 00:50
Copy link
Copy Markdown

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #10131

Scan targets checked: wolfcrypt-api_misuse, wolfcrypt-bugs, wolfcrypt-compliance, wolfcrypt-concurrency, wolfcrypt-portability, wolfcrypt-src, wolfssl-bugs, wolfssl-compliance, wolfssl-src

Findings: 5
5 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

@douzzer douzzer force-pushed the 20260403-WC_FIPS_186 branch 5 times, most recently from 9e83284 to a008983 Compare April 5, 2026 18:17
@douzzer
Copy link
Copy Markdown
Contributor Author

douzzer commented Apr 5, 2026

Note, CI failures are fips-ready ACVP (expected to fail) and OpenVPN master branch changes unrelated to this PR.

Frauschi
Frauschi previously approved these changes Apr 5, 2026
Copy link
Copy Markdown
Contributor

@Frauschi Frauschi left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for thoroughly finalizing this @douzzer!

@douzzer douzzer force-pushed the 20260403-WC_FIPS_186 branch 2 times, most recently from 73cc972 to e1f5992 Compare April 6, 2026 01:31
…ature gen and verify ops:

* add WC_FIPS_186_4, WC_FIPS_186_4_PLUS, WC_FIPS_186_5, and WC_FIPS_186_5_PLUS feature macros.
* add support for WC_HASH_CUSTOM_MIN_DIGEST_SIZE, WC_HASH_CUSTOM_MAX_DIGEST_SIZE, and
  WC_HASH_CUSTOM_MAX_BLOCK_SIZE, for use with custom digest algorithms.
* add SigOidMatchesKeyOid() helper function and WC_MIN_DIGEST_SIZE macro.
* add additional size and OID agreement checks for sig gen and verify ops.
* update ecc_test_vector() with FIPS 186-5 vectors.

Co-authored-by: Tobias Frauenschläger <tobias@wolfssl.com>
@douzzer douzzer force-pushed the 20260403-WC_FIPS_186 branch from e1f5992 to abce5be Compare April 6, 2026 06:00
Frauschi
Frauschi previously approved these changes Apr 6, 2026
dgarske
dgarske previously approved these changes Apr 6, 2026
@douzzer douzzer added the Staged Staged for merge pending final test results and review label Apr 6, 2026
JacobBarthelmeh
JacobBarthelmeh previously approved these changes Apr 6, 2026
@douzzer douzzer dismissed stale reviews from JacobBarthelmeh, dgarske, and Frauschi via 1d6f295 April 6, 2026 23:10
@douzzer douzzer merged commit 53a3d23 into wolfSSL:master Apr 6, 2026
425 of 434 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For This Release Release version 5.9.1 Staged Staged for merge pending final test results and review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants