mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
add sanity checks to internal RsaVerifySign inputs
This commit is contained in:
@@ -1578,6 +1578,11 @@ int VerifyRsaSign(const byte* sig, word32 sigSz,
|
||||
|
||||
WOLFSSL_ENTER("VerifyRsaSign");
|
||||
|
||||
if (sig == NULL || plain == NULL || key == NULL) {
|
||||
WOLFSSL_MSG("Null pointer input");
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
if (sigSz > ENCRYPT_LEN) {
|
||||
WOLFSSL_MSG("Signature buffer too big");
|
||||
return BUFFER_E;
|
||||
|
Reference in New Issue
Block a user