wolfssl
wolfssl copied to clipboard
ARM32 SHA-3 ASM: fix ldrd/strd for ARMv6
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