wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

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

Open SparkiDev opened this issue 1 year ago • 0 comments

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 avatar Jun 28 '24 04:06 SparkiDev