mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-10-24 04:09:07 +03:00
wc_SlhDsaKey_SignWithRandom() rejected msg == NULL for any length, so it and wc_SlhDsaKey_SignDeterministic() returned BAD_FUNC_ARG for an empty message passed as (NULL, 0), unlike wc_SlhDsaKey_Sign() and Verify(). Use the same check as Sign() and, like Sign(), replace a NULL message with a one-byte static stand-in before the crypto callback dispatch. Update the doxygen and source comments, and add tests for the (NULL, 0) case.
The wolfSSL manual is available at: http://www.wolfssl.com/documentation/wolfSSL-Manual.pdf The wolfSSL API guide is available at: https://www.wolfssl.com/doxygen/wolfssl_API.html The wolfCrypt API guide is available at: https://www.wolfssl.com/doxygen/wolfcrypt_API.html