F-15070: correct LMS verify comment to say which returns map to false and which throw

pull/301/head
Chris Conlon 2026-10-16 11:57:01 -06:00
parent 052e15e9be
commit 0b27a2f342
1 changed files with 2 additions and 1 deletions

View File

@ -230,7 +230,8 @@ JNIEXPORT jboolean JNICALL Java_com_wolfssl_wolfcrypt_Lms_wc_1LmsKey_1verify
result = JNI_TRUE;
}
else if (ret != SIG_VERIFY_E && ret != SIG_TYPE_E && ret != BUFFER_E) {
/* Treat these returns as failed verification */
/* Verify error, type does not match, and wrong sig length leave result
* false. Other returns are an error. */
throwWolfCryptExceptionFromError(env, ret);
}