aboutsummaryrefslogtreecommitdiff
path: root/android/olm-sdk/src/androidTest/java/org/matrix
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2018-10-23 12:15:14 -0400
committerHubert Chathi <hubert@uhoreg.ca>2018-10-23 12:24:49 -0400
commit9acfd1791edc3ab7750dcb53ae277c8a33296532 (patch)
tree029d2916b8efbcf7ecf9b0a6065fab38bca18e32 /android/olm-sdk/src/androidTest/java/org/matrix
parentb79590e490a364d13ca2d96ccccf8d5e5145af22 (diff)
expose the private key length in the Android sdk
Diffstat (limited to 'android/olm-sdk/src/androidTest/java/org/matrix')
-rw-r--r--android/olm-sdk/src/androidTest/java/org/matrix/olm/OlmPkTest.java2
1 files changed, 2 insertions, 0 deletions
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) {