Skip to content

Fix ML-DSA level auto-detection in WOLFSSL_MLDSA_NO_ASN1 builds#10852

Open
stenslae wants to merge 1 commit into
wolfSSL:masterfrom
stenslae:fix-mldsa-privkeydecode-no-asn1
Open

Fix ML-DSA level auto-detection in WOLFSSL_MLDSA_NO_ASN1 builds#10852
stenslae wants to merge 1 commit into
wolfSSL:masterfrom
stenslae:fix-mldsa-privkeydecode-no-asn1

Conversation

@stenslae

@stenslae stenslae commented Jul 6, 2026

Copy link
Copy Markdown
Member

Description

wc_MlDsaKey_PublicKeyDecode() couldn't auto-detect the ML-DSA security level from DER when built with WOLFSSL_MLDSA_NO_ASN1. Adds OID-to-level detection to the no-ASN.1 parser to match normal build behavior, fixes a one-byte over-read on malformed zero-length BIT STRINGs, and makes DER private-key decode explicitly return NOT_COMPILED_IN in this mode instead of behaving inconsistently.

Testing

Adds test coverage and two new CI jobs to exercise this configuration.

Checklist

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

@stenslae stenslae self-assigned this Jul 6, 2026

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #10852

Scan targets checked: wolfcrypt-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

No new issues found in the changed files. ✅

@stenslae stenslae assigned wolfSSL-Bot and unassigned wolfSSL-Bot Jul 6, 2026
@stenslae

stenslae commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

Jenkins retest this please

@stenslae stenslae force-pushed the fix-mldsa-privkeydecode-no-asn1 branch from d199622 to 8407359 Compare July 6, 2026 22:09

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #10852

Scan targets checked: wolfcrypt-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

No new issues found in the changed files. ✅

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