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

ARM32 SHA-3 ASM: fix ldrd/strd for ARMv6 #7697

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

SparkiDev
Copy link
Contributor

Description

LDRD/STRD not available with ARMv6 and the alternative is two ldr/str operations. Pointer was 64-bits causing second ldr/str to be 8 bytes passed first and not 4 bytes. Fixed in asm to add 4 rather than index.

Testing

./configure 'CC=arm-linux-gnueabi-gcc' '--host=armv6' '--disable-shared' 'LDFLAGS=--static' '--enable-armasm' '--enable-sha3'
./wolfcrypt/test/testwolfcrypt

Checklist

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

@SparkiDev SparkiDev self-assigned this Jun 28, 2024
@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev Jun 28, 2024
@SparkiDev SparkiDev requested a review from wolfSSL-Bot June 28, 2024 04:52
LDRD/STRD not available with ARMv6 and the alternative is two ldr/str
operations. Pointer was 64-bits causing second ldr/str to be 8 bytes
passed first and not 4 bytes. Fixed in asm to add 4 rather than index.
@SparkiDev SparkiDev force-pushed the arm32_ldrd_strd_fix branch from a1feab6 to 45442db Compare July 1, 2024 05:24
@JacobBarthelmeh JacobBarthelmeh merged commit ba1eedb into wolfSSL:master Jul 2, 2024
119 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants