F-15070: correct LMS verify comment to say which returns map to false and which throw
parent
052e15e9be
commit
0b27a2f342
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue