Skip to content

Fix ECC buffer test by correcting message length#10814

Merged
douzzer merged 1 commit into
wolfSSL:masterfrom
kojiws:fix_ecc_31bytes_on_test
Jul 1, 2026
Merged

Fix ECC buffer test by correcting message length#10814
douzzer merged 1 commit into
wolfSSL:masterfrom
kojiws:fix_ecc_31bytes_on_test

Conversation

@kojiws

@kojiws kojiws commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Description

The original test message was 31 bytes despite the comment saying 32. This caused BAD_LENGTH_E from wc_ecc_sign_hash() when WC_MIN_DIGEST_SIZE resolves to 32. Extended by one character to match the stated intent.

This problem was found with an actual custom user_setting.h.

Testing

./configure --enable-ecc CFLAGS="-DUSE_CERT_BUFFERS_256 -DWC_HASH_CUSTOM_MIN_DIGEST_SIZE=32"

Checklist

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

@kojiws kojiws self-assigned this Jun 30, 2026
@kojiws kojiws marked this pull request as ready for review June 30, 2026 13:32
@github-actions

Copy link
Copy Markdown

retest this please

@kojiws kojiws force-pushed the fix_ecc_31bytes_on_test branch from 7f235f6 to 757c822 Compare July 1, 2026 01:27
@kojiws kojiws force-pushed the fix_ecc_31bytes_on_test branch from 757c822 to b98e43e Compare July 1, 2026 02:06
@kojiws kojiws assigned wolfSSL-Bot and unassigned kojiws Jul 1, 2026
@douzzer douzzer merged commit fed8d6a into wolfSSL:master Jul 1, 2026
306 of 308 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.

4 participants