F-8203: resolve RNG from rng_object in FIPS RsaSSL_Sign wrappers

pull/254/head
Chris Conlon 2026-08-10 16:59:01 -06:00
parent 8b1f3228e2
commit 7639d39c7c
1 changed files with 2 additions and 2 deletions

View File

@ -2160,7 +2160,7 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_wolfcrypt_Fips_wc_1RsaSSL_1Sign_1fips__L
return BAD_FUNC_ARG;
}
rng = (RNG*) getNativeStruct(env, rsa_object);
rng = (RNG*) getNativeStruct(env, rng_object);
if ((*env)->ExceptionOccurred(env)) {
/* prevent additional JNI calls with pending exception */
return BAD_FUNC_ARG;
@ -2217,7 +2217,7 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_wolfcrypt_Fips_wc_1RsaSSL_1Sign_1fips___
return BAD_FUNC_ARG;
}
rng = (RNG*) getNativeStruct(env, rsa_object);
rng = (RNG*) getNativeStruct(env, rng_object);
if ((*env)->ExceptionOccurred(env)) {
/* prevent additional JNI calls with pending exception */
return BAD_FUNC_ARG;