diff options
author | Hubert Chathi <hubert@uhoreg.ca> | 2018-06-27 17:38:14 -0400 |
---|---|---|
committer | Hubert Chathi <hubert@uhoreg.ca> | 2018-06-27 18:49:48 -0400 |
commit | 307309c69b99087489a5d2d2eccecee7751fead6 (patch) | |
tree | 21328bb745b6919bf16dc50e5e3ec779fafd66cd /android/olm-sdk/src/main/jni/olm_jni_helper.cpp | |
parent | 552da6eafecc29f6900854ebe7c55fa8a96002e4 (diff) |
add initial version of Android wrapper for public key API
Diffstat (limited to 'android/olm-sdk/src/main/jni/olm_jni_helper.cpp')
-rw-r--r-- | android/olm-sdk/src/main/jni/olm_jni_helper.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/android/olm-sdk/src/main/jni/olm_jni_helper.cpp b/android/olm-sdk/src/main/jni/olm_jni_helper.cpp index a1f5c59..1997334 100644 --- a/android/olm-sdk/src/main/jni/olm_jni_helper.cpp +++ b/android/olm-sdk/src/main/jni/olm_jni_helper.cpp @@ -212,3 +212,13 @@ struct OlmUtility* getUtilityInstanceId(JNIEnv* aJniEnv, jobject aJavaObject) { return (struct OlmUtility*)getInstanceId(aJniEnv, aJavaObject, CLASS_OLM_UTILITY); } + +struct OlmPkDecryption* getPkDecryptionInstanceId(JNIEnv* aJniEnv, jobject aJavaObject) +{ + return (struct OlmPkDecryption*)getInstanceId(aJniEnv, aJavaObject, CLASS_OLM_PK_DECRYPTION); +} + +struct OlmPkEncryption* getPkEncryptionInstanceId(JNIEnv* aJniEnv, jobject aJavaObject) +{ + return (struct OlmPkEncryption*)getInstanceId(aJniEnv, aJavaObject, CLASS_OLM_PK_ENCRYPTION); +} |