Skip to content

LMS: fixes and improvements#10448

Merged
dgarske merged 1 commit into
wolfSSL:masterfrom
SparkiDev:lms_fixes_1
May 12, 2026
Merged

LMS: fixes and improvements#10448
dgarske merged 1 commit into
wolfSSL:masterfrom
SparkiDev:lms_fixes_1

Conversation

@SparkiDev

Copy link
Copy Markdown
Contributor

Description

Remove WC_LMS_PARM_NONE as it serves no purpose.
Change sig_len from a 16-bit value to a 32-bit value in the parameters. Added wc_LmsKey_SetParameters_ex() and wc_LmsKey_GetParameters_ex() to handle hash algorithm.
Change mass ForceZeros to smaller amounts with XMEMSET and setting to NULL or default valus.
Allow signing of empty message.
Other minor fixes.

Fix API tests to work when WOLFSSL_LMS_MAX_HEIGHT/WOLFSSL_LMS_MAX_LEVELS are/is defined.

Testing

Regression tested LMS.

@SparkiDev SparkiDev self-assigned this May 11, 2026
@github-actions

github-actions Bot commented May 11, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

Remove WC_LMS_PARM_NONE as it serves no purpose.
Change sig_len from a 16-bit value to a 32-bit value in the parameters.
Added wc_LmsKey_SetParameters_ex() and wc_LmsKey_GetParameters_ex() to
handle hash algorithm.
Change mass ForceZeros to smaller amounts with XMEMSET and setting to
NULL or default valus.
Allow signing of empty message.
Other minor fixes.

Fix API tests to work when WOLFSSL_LMS_MAX_HEIGHT/WOLFSSL_LMS_MAX_LEVELS
are/is defined.
@SparkiDev

SparkiDev commented May 11, 2026

Copy link
Copy Markdown
Contributor Author

Jenkins: retest this please
Sanitizer aborted

@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 #10448

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

No new issues found in the changed files. ✅

@dgarske
dgarske merged commit 32439c9 into wolfSSL:master May 12, 2026
445 of 446 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.

5 participants