Update RSA verify documentation to specify that the output should be compared with the original plaintext

This commit is contained in:
Colton Willey
2024-09-04 10:13:40 -07:00
parent 2bcfff3497
commit f9af463db1

View File

@@ -403,6 +403,12 @@ int wc_RsaSSL_VerifyInline(byte* in, word32 inLen, byte** out,
if (ret < 0) { if (ret < 0) {
return -1; return -1;
} }
if (ret != inLen) {
return -1;
}
if (XMEMCMP(in, plain, ret) != 0) {
return -1;
}
\endcode \endcode
\sa wc_RsaSSL_Sign \sa wc_RsaSSL_Sign