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

SHA256 ARMv8: fix wc_Sha256Transform #7338

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

SparkiDev
Copy link
Contributor

Description

wc_Sha256Transform() was passing in data to underlying transform function even though byte reversed data was in sha256->buffer.

Testing

./configure '--disable-shared' 'LDFLAGS=--static' '--host=aarch64' 'CC=aarch64-linux-gnu-gcc' '--enable-opensslextra' '--enable-armasm'
./tests/unit.test -test_wolfSSL_SHA256_Transform

Checklist

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

wc_Sha256Transform() was passing in data to underlying transform
function even though byte reversed data was in sha256->buffer.
@SparkiDev
Copy link
Contributor Author

retest this please

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.

tests good -- passes wolfssl-multi-test.sh ... cross-aarch64-all-armasm-unittest-sanitizer cross-aarch64-armasm-fips-140-3-dev-all-unittest-sanitizer.

@douzzer douzzer merged commit e3fc43c into wolfSSL:master Mar 14, 2024
91 of 97 checks passed
@douzzer
Copy link
Contributor

douzzer commented Mar 14, 2024

note, merged with failing CI tests because github CI is currently broken (toolchain pain, nginx/krb5/openvpn tests all failing, likely related to sanitizers on gcc-12 as updated by Ubuntu).

also, this PR touches only one file, and no CI tests other than the multi-test PRB currently test that one file (which we tested offline), so CI is irrelevant here.

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