Fix alert type for missing cert. Prevent building with RNG disabled and blinding enabled by default. Enforce bounds for AES CMAC size in verify.#10462
Open
kareem-wolfssl wants to merge 6 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR hardens cryptographic configuration and CMAC verification behavior, and corrects a TLS 1.3 alert for missing client certificates.
Changes:
- Prevent builds that combine
WC_NO_RNGwith blinding options (unless explicitly acknowledged). - Enforce AES-CMAC tag length bounds in verify APIs and return
MAC_CMP_FAILED_Eon mismatch. - Send TLS 1.3
certificate_requiredalert when the client can’t provide a required certificate; update docs/tests accordingly.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
wolfssl/wolfcrypt/settings.h |
Avoid enabling Curve25519 blinding when RNG is disabled; add build-time error for blinding+no-RNG configurations. |
wolfcrypt/src/cmac.c |
Enforce CMAC tag-size bounds; prevent callback-driven size tampering; return consistent mismatch error. |
tests/api/test_cmac.c |
Add coverage for CMAC verify bounds, truncation behavior, and mismatch return code. |
src/tls13.c |
Fix TLS 1.3 alert to certificate_required for missing client certificate. |
doc/formats/html/doxygen_warnings |
Adds a doxygen warnings output file. |
doc/dox_comments/header_files/cmac.h |
Update doxygen docs for new CMAC verify behavior and examples. |
.wolfssl_known_macro_extras |
Add an acknowledgment macro to the known-macros list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…as none set. Thanks to Cal Page for the report.
…G_MIN_SZ, WC_AES_BLOCK_SIZE]. Fixes F-3084.
…OLFSSL_RSA_VERIFY_ONLY are defined as they don't use blinding.
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.
Description
Fixes zd#21507, F-2624, F-3084.
Testing
Built in tests
Checklist