Commit Graph

47 Commits

Author SHA1 Message Date
Jack Lloyd
fe45db9c82 Have Maven log stack traces of tests that fail with exceptions 2020-12-07 17:28:03 -05:00
Jordan Rose
725ded881b Java: Generate debug symbols for the native Rust library 2020-12-04 11:35:03 -08:00
Jordan Rose
d1df148cc8 Java: Escape some non-ASCII characters in a test case 2020-12-01 16:54:35 -08:00
Jordan Rose
df87cd2edf UnidentifiedSenderMessageContent: Don't validate the sender up front
Both the Android and iOS clients currently allow customizing this
validatation logic for testing purposes, and iOS additionally wants to
log the information about the unwrapped message even if there are
problems with it.

iOS does also currently log information about the unwrapped message
even if the static key being used is wrong, but in order to fix that
we'd have to have a secondary return value (either the expected static
key, computed during decrypt-to-USMC, or a flag saying whether the
comparison failed).
2020-12-01 16:50:49 -08:00
Jack Lloyd
643a637b34 Merge pull request #77 from signalapp/jack/sealed-sender
Sealed Sender
2020-12-01 17:43:30 -05:00
jimio-signal
97e3da2adc modify Dockerfile for openjdk installation again 2020-11-30 21:37:13 -08:00
jimio-signal
e7ee1a617a bump version number, publish clean build artifacts 2020-11-30 17:26:50 -08:00
Jordan Rose
84c380b0cd Bump Java version number to 0.1.4 2020-11-24 10:17:06 -08:00
Jordan Rose
e64fa771e5 JNI: Handle InvalidKeyIdException in (Signed)PreKeyStore
And test that the exception is handled and not propagated.
2020-11-23 13:20:23 -08:00
Jack Lloyd
153fe71238 Remove Java-side protobufs for Sealed Sender
They were still being used in the tests
2020-11-21 04:58:57 -05:00
Jordan Rose
f7c6e27a90 Skip Gradle's daemon when building in Docker 2020-11-19 16:37:29 -08:00
Jordan Rose
99bffda143 Docker: Remove unnecessary extra copy of rust-toolchain 2020-11-19 16:20:16 -08:00
Jack Lloyd
786b9b5792 SealedSessionCipher decrypt 2020-11-19 16:06:04 -05:00
Jack Lloyd
405d071ead SealedSessionCipher encrypt 2020-11-19 13:24:29 -05:00
Jack Lloyd
ddda1a3635 UnidentifiedSenderMessage 2020-11-19 13:24:29 -05:00
Jack Lloyd
4a8705dce1 UnidentifiedSenderMessageContent 2020-11-19 13:24:29 -05:00
Jack Lloyd
507629ff0d Add SenderCertificate and ServerCertificate 2020-11-19 13:24:29 -05:00
Jack Lloyd
3cb8e46ba1 Remove some unused util functions from Java library
The only function Android imports from KeyHelper is generateRegistrationId
2020-11-18 15:42:29 -05:00
Jack Lloyd
61057fe71b Import the libsignal-metadata-java tests
Accidentally omitted from import in #21
2020-11-13 13:45:24 -05:00
Jack Lloyd
b92b5937ca Automatically generate Native.java from the exported symbols of the Rust bridge 2020-11-12 17:47:00 -05:00
Jack Lloyd
aa9eb2122f Merge pull request #46 from signalapp/jack/bump-java-version
Bump Java .jar to 0.1.3
2020-11-11 13:27:08 -05:00
Jack Lloyd
d3cb29547a Bump Java .jar to 0.1.3 2020-11-11 13:11:34 -05:00
Jack Lloyd
c3fd6fcf6a Use a better name
Unrelated, remove an unused import
2020-11-11 13:00:48 -05:00
Jack Lloyd
54835b0a03 Fixes for Android
- Allow info to be null/empty in HKDF arguments. This is used during
  KBS attestation.
- Allow creating an ECPublicKey from the un-typed key bytes, also used
  when talking to KBS.
2020-11-11 11:48:27 -05:00
Jack Lloyd
82dbf03905 Merge pull request #42 from signalapp/jack/pin-the-nightly
Pin nightly to a specific date
2020-11-09 15:55:00 -05:00
Jack Lloyd
d9e33d0251 Pin nightly to a specific date 2020-11-09 15:39:29 -05:00
Jack Lloyd
9ca168a567 Remove the SenderKey protobufs from Java wrapper 2020-11-06 17:47:56 -05:00
Jack Lloyd
dd57254f8f Move makefile and docker file into java subdir 2020-11-06 16:40:54 -05:00
Jack Lloyd
3c8d85211b Bump version number 2020-11-06 16:40:54 -05:00
Jack Lloyd
2a2a8a70a8 Fix method signature 2020-11-06 16:40:54 -05:00
Jack Lloyd
a3f5b64257 Add ECPublicKey.generate 2020-11-05 17:59:09 -05:00
Jack Lloyd
4db424c3b2 Don't ignore invalid preKeyIds just because preKey is null 2020-11-05 17:59:09 -05:00
Jack Lloyd
c5a8010bff Update license header 2020-11-05 17:59:09 -05:00
Jack Lloyd
383304573c Remove Curve.isNative 2020-11-05 17:59:09 -05:00
Jack Lloyd
5416ef2c5b Remove debug code 2020-11-05 17:59:09 -05:00
Jack Lloyd
b5e410b0f2 Avoid UTF-8 in java test files
If LANG is not set to a UTF-8 encoding the build will fail.
2020-11-05 17:59:09 -05:00
Jack Lloyd
cc201de173 Add Docker based build for Java .jars 2020-11-05 17:59:09 -05:00
Jack Lloyd
26429e15d1 Remove use of IdentityKeyPair protobuf 2020-11-05 17:59:09 -05:00
Jack Lloyd
5b1bf8b96e Remove some unneeded protobufs from the Java lib 2020-11-05 17:59:09 -05:00
Jack Lloyd
58e023f148 Remove many unused functions from ByteUtil
Not used either in this jar nor in Signal-Android, so no need to keep them.
2020-11-05 17:59:09 -05:00
Jack Lloyd
8624331e77 Clean up some imports, remove empty static blocks, other review comments 2020-11-05 17:59:09 -05:00
Jack Lloyd
d5fd5ddf76 Use a script instead of make for building the JNI native libraries 2020-11-05 17:59:09 -05:00
Jack Lloyd
304171fdf3 Import libsignal-metadata-java v0.1.2 2020-11-05 17:59:09 -05:00
Jack Lloyd
1037e6735a Rename jars, reset version, switch license 2020-11-05 17:59:09 -05:00
Jack Lloyd
0fbd07ca81 Modify libsignal-protocol-java to use Rust via JNI
Removes device consistency code (unused)
Removes decryption callbacks (unused)
2020-11-05 17:59:09 -05:00
Jack Lloyd
885756637b Remove README and LICENSE from java subdir 2020-11-05 17:59:09 -05:00
Jack Lloyd
69a4b40423 Import v2.8.1 of libsignal-protocol-java
No changes vs that version in this commit
2020-11-05 17:59:09 -05:00