Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECC Test Fix #8001

Merged
merged 1 commit into from
Sep 21, 2024
Merged

ECC Test Fix #8001

merged 1 commit into from
Sep 21, 2024

Conversation

ejohnstown
Copy link
Contributor

Description

The ECC key generation test was failing due not using large enough of a buffer. Fixed to use a better size. Set the shared digest/sig buffer size in _ecc_pairwise_consistency_test() to the maximum possible based on the math in wc_ecc_sig_sz().

Testing

./configure CPPFLAGS="-DWOLFSSL_VALIDATE_ECC_IMPORT -DWOLFSSL_VALIDATE_ECC_KEYGEN" CC="clang -fsanitize=address" && make clean && make
./wolfcrypt/test/testwolfcrypt

Checklist

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

The ECC key generation test was failing due not using large enough of a
buffer. Fixed to use a better size.

1. Set the shared digest/sig buffer size in
   _ecc_pairwise_consistency_test() to the maximum possible based on the
   math in wc_ecc_sig_sz().
Copy link
Contributor

@douzzer douzzer left a comment

Choose a reason for hiding this comment

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

all-sanitizer-fips-140-3-dev OK

@douzzer douzzer merged commit bc68819 into wolfSSL:master Sep 21, 2024
135 checks passed
@ejohnstown ejohnstown deleted the ecc-test-fix branch September 21, 2024 02:31
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.

2 participants