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/androidTest/java/org/matrix/olm/OlmPkTest.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'android/olm-sdk/src/androidTest/java/org') diff --git a/android/olm-sdk/src/androidTest/java/org/matrix/olm/OlmPkTest.java b/android/olm-sdk/src/androidTest/java/org/matrix/olm/OlmPkTest.java index 1577f3b..29f6946 100644 --- a/android/olm-sdk/src/androidTest/java/org/matrix/olm/OlmPkTest.java +++ b/android/olm-sdk/src/androidTest/java/org/matrix/olm/OlmPkTest.java @@ -116,6 +116,8 @@ public class OlmPkTest { (byte)0x1D, (byte)0xB9, (byte)0x2C, (byte)0x2A }; + assertTrue(privateKey.length == OlmPkDecryption.privateKeyLength()); + try { mOlmPkDecryption.setPrivateKey(privateKey); } catch (OlmException e) { -- cgit v1.2.3