wolfSSL / wolfssl

The wolfSSL library is a small, fast, portable implementation of TLS/SSL for embedded devices to the cloud. wolfSSL supports up to TLS 1.3 and DTLS 1.3!
https://www.wolfssl.com
GNU General Public License v2.0
2.22k stars 798 forks source link

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

Closed SparkiDev closed 3 days ago

SparkiDev commented 1 week ago

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