From 9acfd1791edc3ab7750dcb53ae277c8a33296532 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Tue, 23 Oct 2018 12:15:14 -0400 Subject: expose the private key length in the Android sdk --- android/olm-sdk/src/main/java/org/matrix/olm/OlmPkDecryption.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'android/olm-sdk/src/main/java/org/matrix') diff --git a/android/olm-sdk/src/main/java/org/matrix/olm/OlmPkDecryption.java b/android/olm-sdk/src/main/java/org/matrix/olm/OlmPkDecryption.java index 6522f70..6a6a22b 100644 --- a/android/olm-sdk/src/main/java/org/matrix/olm/OlmPkDecryption.java +++ b/android/olm-sdk/src/main/java/org/matrix/olm/OlmPkDecryption.java @@ -51,6 +51,8 @@ public class OlmPkDecryption { return (0 == mNativeId); } + public static native int privateKeyLength(); + public String setPrivateKey(byte[] privateKey) throws OlmException { try { byte[] key = setPrivateKeyJni(privateKey); -- cgit v1.2.3