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.36k stars 835 forks source link

BN API: fix BN_bin2bn to handle NULL data properly #8082

Closed SparkiDev closed 1 month ago

SparkiDev commented 1 month ago

Description

BN_bin2bn was freeing the BN and returning it. Added test for this.

Testing

Added explicit test: ./configure --enable-opensslall ./tests/unit.test -test_wolfSSL_BN_enc_dec

Checklist