aboutsummaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2018-10-13 19:48:25 -0400
committerHubert Chathi <hubert@uhoreg.ca>2018-10-15 10:11:47 -0400
commit1eac1daa4787c8744ff7eb1a21fa56c737c4569b (patch)
treed68f02f7543433f98f67608ef3ee3825e084154b /android
parent8c1169f0f57090fe7b715bfb794c8cd72f0236bd (diff)
use new function names in Android bindings
Diffstat (limited to 'android')
-rw-r--r--android/olm-sdk/src/main/jni/olm_pk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/olm-sdk/src/main/jni/olm_pk.cpp b/android/olm-sdk/src/main/jni/olm_pk.cpp
index 12528de..bc78079 100644
--- a/android/olm-sdk/src/main/jni/olm_pk.cpp
+++ b/android/olm-sdk/src/main/jni/olm_pk.cpp
@@ -366,7 +366,7 @@ JNIEXPORT void OLM_PK_DECRYPTION_FUNC_DEF(releasePkDecryptionJni)(JNIEnv *env, j
JNIEXPORT jbyteArray OLM_PK_DECRYPTION_FUNC_DEF(generateKeyJni)(JNIEnv *env, jobject thiz)
{
- size_t randomLength = olm_pk_generate_key_random_length();
+ size_t randomLength = olm_pk_private_key_length();
uint8_t *randomBuffPtr = NULL;
jbyteArray publicKeyRet = 0;
@@ -393,7 +393,7 @@ JNIEXPORT jbyteArray OLM_PK_DECRYPTION_FUNC_DEF(generateKeyJni)(JNIEnv *env, job
}
else
{
- if (olm_pk_generate_key(decryptionPtr, publicKeyPtr, publicKeyLength, randomBuffPtr, randomLength) == olm_error())
+ if (olm_pk_key_from_private(decryptionPtr, publicKeyPtr, publicKeyLength, randomBuffPtr, randomLength) == olm_error())
{
errorMessage = olm_pk_decryption_last_error(decryptionPtr);
LOGE("## pkGenerateKeyJni(): failure - olm_pk_generate_key Msg=%s", errorMessage);