From 266287783c475085f0b652564b743fbf02fa124a Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 20 Sep 2017 17:01:45 +0800 Subject: [PATCH 1/3] Update GmSSL.java privateKeyDecrypt --- java/GmSSL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/GmSSL.java b/java/GmSSL.java index 4e523d57..7d0943e4 100755 --- a/java/GmSSL.java +++ b/java/GmSSL.java @@ -69,7 +69,7 @@ public class GmSSL { public native int verify(String algor, int flag, byte [] digest, byte [] signature, byte [] publicKey); public native String [] getPublicKeyEncryptions(boolean aliases); public native byte [] publicKeyEncrypt(String algor, int flag, byte [] in, byte [] publicKey); - public native byte [] publicKeyDecrypt(String algor, int falg, byte [] in, byte [] privateKey); + public native byte [] privateKeyDecrypt(String algor, int falg, byte [] in, byte [] privateKey); public native String [] getDeriveKeyAlgorithms(boolean aliases); public native byte [] deriveKey(String algor, int flag, int keyLength, byte [] peerPublicKey, byte [] privateKey); public native String getErrorString(); From 88d974cfa8c3afa5503df8142e397072a76fd223 Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 20 Sep 2017 16:59:51 +0800 Subject: [PATCH 2/3] Update GmSSL.c maybe you means PrivateKeyDecrypt ? --- java/GmSSL.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/GmSSL.c b/java/GmSSL.c index 5aef4f37..50af81e3 100755 --- a/java/GmSSL.c +++ b/java/GmSSL.c @@ -570,7 +570,7 @@ end: } -JNIEXPORT jbyteArray JNICALL Java_GmSSL_publicKeyDecrypt( +JNIEXPORT jbyteArray JNICALL Java_GmSSL_PrivateKeyDecrypt( JNIEnv *env, jobject this, jstring algor, jint flag, jbyteArray in, jbyteArray key) { From 92a13cb0ec6da69b0609458c9c16be843e6b0598 Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 20 Sep 2017 17:03:32 +0800 Subject: [PATCH 3/3] Update GmSSL.c --- java/GmSSL.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/GmSSL.c b/java/GmSSL.c index 50af81e3..93d8f64a 100755 --- a/java/GmSSL.c +++ b/java/GmSSL.c @@ -570,7 +570,7 @@ end: } -JNIEXPORT jbyteArray JNICALL Java_GmSSL_PrivateKeyDecrypt( +JNIEXPORT jbyteArray JNICALL Java_GmSSL_privateKeyDecrypt( JNIEnv *env, jobject this, jstring algor, jint flag, jbyteArray in, jbyteArray key) {