mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Update RSA verify documentation to specify that the output should be compared with the original plaintext
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user