0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-20 03:52:17 +02:00
Commit Graph

345 Commits

Author SHA1 Message Date
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
59850b32b2 Add rule dependency 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
560204eab9 Add Github actions 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
Jack Lloyd
723468b8a1
Merge pull request #35 from signalapp/jack/update-cargo-lock
Update Cargo.lock
2020-11-05 17:57:55 -05:00
Jack Lloyd
b9053c4889 Update Cargo.lock
PRs #34 and #27 happened concurrently so async crates are not listed
2020-11-05 17:36:50 -05:00
Jack Lloyd
aaf9b93429
Merge pull request #26 from signalapp/jack/add-public-key-bytes
Add PublicKey::public_key_bytes
2020-11-05 14:54:03 -05:00
Jordan Rose
2e072b0f8d
Merge pull request #34 from signalapp/jrose/check-for-dups
Track Cargo.lock for more consistent builds
2020-11-05 11:17:28 -08:00
Jack Lloyd
7380514025 In Swift use keyBytes instead of publicKeyBytes 2020-11-05 14:03:32 -05:00
Jordan Rose
7ee10a519c GitHub: Verify that we don't have multiple versions of crates 2020-11-05 10:48:53 -08:00
Jordan Rose
dd2bef9c5e Track Cargo.lock for more consistent builds
Normally library repositories wouldn't commit their Cargo.lock, but
these libraries are built into staticlibs or cdylibs and thus escape
the crates.io ecosystem for versioning. In particular, recording exact
dependencies keeps us from having multiple versions of the same crate
unexpectedly.
2020-11-05 10:41:57 -08:00
Jack Lloyd
fcc315df0f
Merge pull request #33 from signalapp/jack/ignore-patch
Ignore .orig and .rej files from patch
2020-11-05 13:24:14 -05:00
Jordan Rose
1c30d6369b
Merge pull request #27 from signalapp/jrose/async
Thread 'async' through any protocol APIs that take Stores
2020-11-05 10:18:34 -08:00
Jack Lloyd
cddd0d86ed Ignore .orig and .rej files from patch 2020-11-04 16:48:50 -05:00
Jordan Rose
d29cb37202
Merge pull request #28 from signalapp/jrose/swift-file-header
Swift: enforce header comments
2020-11-04 12:32:44 -08:00
Jordan Rose
e94ac166fc Swift: enforce header comments 2020-11-03 15:50:38 -08:00
Jordan Rose
33b8c6ad8d Run cargo fmt after async changes 2020-11-03 14:35:38 -08:00
Jordan Rose
90a9f76dc6 Thread 'async' through any protocol APIs that take Stores
In preparation for Desktop, which must asynchronously access its
database (rather than putting the entire operation on a background
thread with synchronization at the database layer).

The FFI and JNI wrappers (as well as the tests) use
futures::executor::block_on to turn the operations back into
synchronous ones.
2020-11-03 14:35:38 -08:00
Jack Lloyd
9a7785686b Add PublicKey::public_key_bytes
Signal-Android needs this function, probably Swift will as well.

Also fix the Swift tests on Linux
2020-11-03 17:06:04 -05:00
Jack Lloyd
75eb8df2ed
Merge pull request #25 from signalapp/jack/jni-cleanup
Small JNI cleanups
2020-11-03 14:04:01 -05:00
Jack Lloyd
dc7fcc772d Remove some needless macro rules 2020-11-03 13:40:44 -05:00
Jack Lloyd
e85a6a1145 jni cleanups
Avoid needless trailing returns - for some reason clippy doesn't catch these.

Add a variant of get_jbytearray when all we need is a function call,
avoiding the lambda.
2020-11-03 12:18:23 -05:00
Jordan Rose
29c49c44b9
Merge pull request #14 from signalapp/jrose/CocoaPod
Add a Podspec for use as a CocoaPod
2020-11-02 15:43:28 -08:00
Jordan Rose
8fcc89125d Update Swift-specific README with CocoaPod and SwiftPM instructions 2020-11-02 15:06:19 -08:00
Jordan Rose
7923b3ae29 Add a Podspec for use as a CocoaPod
And test that the CocoaPod works just like the package works.
2020-11-02 15:06:19 -08:00
Jack Lloyd
f483f71621
Merge pull request #23 from signalapp/jack/agpl
Switch to AGPL 3.0
2020-11-02 18:00:20 -05:00
Jack Lloyd
946e0670f6 Switch to AGPL 3.0 2020-11-02 17:53:10 -05:00
Jack Lloyd
5de9769dee
Merge pull request #2 from signalapp/jack/aes-gcm-siv
Add AES256-GCM-SIV (RFC 8452)
2020-10-29 17:13:34 -04:00
Jack Lloyd
c577c3528c Add AES256-GCM-SIV (RFC 8452) 2020-10-28 17:01:20 -04:00
Jack Lloyd
b41ac3d4e6
Merge pull request #22 from signalapp/jack/upgrade-aes
Bump aes-soft crate to 0.6
2020-10-28 14:53:56 -04:00
Jack Lloyd
b8a50a1291 Bump aes-soft crate to 0.6
As it has some nice optimizations vs 0.5
2020-10-28 13:41:58 -04:00
Jordan Rose
be6f28682b
Merge pull request #17 from signalapp/jrose/CiphertextMessageType
ffi: Expose CiphertextMessageType constants
2020-10-23 14:42:32 -07:00
Jordan Rose
0e78a8ac4f
Merge pull request #19 from signalapp/jrose/paths-ignore
GitHub: Fix paths-ignore for Rust PR testing
2020-10-23 14:37:53 -07:00
Jordan Rose
5de4dec116
Merge pull request #18 from signalapp/jrose/ClonableHandleOwnerTests
swift: Add some tests for the ClonableHandleOwner helper
2020-10-23 10:01:45 -07:00