aboutsummaryrefslogtreecommitdiff
path: root/standalone/src
diff options
context:
space:
mode:
authorJ08nY2024-06-15 12:07:23 +0200
committerJ08nY2024-06-15 12:07:23 +0200
commitd4c6426df7d1d66c7e2a2f1000d252edfe51c43a (patch)
tree7ff463b9655821bce0063e162189ebcad4dac3e7 /standalone/src
parent6c333be59a328dcca776acfbd73f3bd332b8563d (diff)
downloadECTester-d4c6426df7d1d66c7e2a2f1000d252edfe51c43a.tar.gz
ECTester-d4c6426df7d1d66c7e2a2f1000d252edfe51c43a.tar.zst
ECTester-d4c6426df7d1d66c7e2a2f1000d252edfe51c43a.zip
Diffstat (limited to 'standalone/src')
-rw-r--r--standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/openssl.c b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/openssl.c
index 7a6070d..59eb0db 100644
--- a/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/openssl.c
+++ b/standalone/src/main/resources/cz/crcs/ectester/standalone/libs/jni/openssl.c
@@ -519,7 +519,7 @@ JNIEXPORT jbyteArray JNICALL Java_cz_crcs_ectester_standalone_libs_jni_NativeKey
} SIG_CATCH_HANDLE(env);
if (err <= 0) {
- throw_new(env, "java/security/GeneralSecurityException", "Error computing ECDH, ECDH_compute_key.");
+ throw_new_var(env, "java/security/GeneralSecurityException", "Error computing ECDH, ECDH_compute_key (%i).", err);
EC_KEY_free(pub); EC_KEY_free(priv); EC_GROUP_free(curve);
(*env)->ReleaseByteArrayElements(env, result, result_data, JNI_ABORT);
return NULL;
@@ -611,7 +611,7 @@ JNIEXPORT jboolean JNICALL Java_cz_crcs_ectester_standalone_libs_jni_NativeSigna
(*env)->ReleaseByteArrayElements(env, data, data_data, JNI_ABORT);
if (result < 0) {
- throw_new(env, "java/security/GeneralSecurityException", "Error verifying, ECDSA_do_verify.");
+ throw_new_var(env, "java/security/GeneralSecurityException", "Error verifying, ECDSA_do_verify (%i).", result);
EC_KEY_free(pub); EC_GROUP_free(curve); ECDSA_SIG_free(sig_obj);
return JNI_FALSE;
}