Skip to content

Fix ECC buffer test by correcting message length#10814

Open
kojiws wants to merge 1 commit into
wolfSSL:masterfrom
kojiws:fix_ecc_31bytes_on_test
Open

Fix ECC buffer test by correcting message length#10814
kojiws wants to merge 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

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.

1 participant