Skip to content

SHA256 ARMv8: fix wc_Sha256Transform#7338

Merged
douzzer merged 1 commit intowolfSSL:masterfrom
SparkiDev:sha256_armv8_transform
Mar 14, 2024
Merged

SHA256 ARMv8: fix wc_Sha256Transform#7338
douzzer merged 1 commit intowolfSSL:masterfrom
SparkiDev:sha256_armv8_transform

Conversation

@SparkiDev
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

retest this please

Copy link
Copy Markdown
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
@douzzer
Copy link
Copy Markdown
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