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.37k stars 834 forks source link

Fix issue with ARM ASM with AES CFB/OFB not initializing the "left" member #8099

Closed dgarske closed 1 month ago

dgarske commented 1 month ago

Description

Fix issue with ARM ASM with AES CFB/OFB not initializing the "left" member.

Consistency for initializing "left = 0" with various build option combinations.

Fixes ZD 18841.

Testing

Tested on Raspberry Pi 5 with ./configure --enable-armasm --enable-aescfb CC="clang -fsanitize=address" && make && make check

./configure CC="clang -fsanitize=address" --enable-armasm --enable-aescfb --disable-aesgcm --disable-aesctr --enable-cryptonly --disable-examples  && make

It was the wolfTPM use of AES CFB that found this issue.

Checklist