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

331 Commits

Author SHA1 Message Date
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
Jordan Rose
bf12512c51 GitHub: Fix paths-ignore for Rust PR testing
There's no reason to re-test Rust things for changes in Swift.
2020-10-22 17:44:36 -07:00
Jordan Rose
c89c94b3a0 swift: Add some tests for the ClonableHandleOwner helper 2020-10-22 17:42:14 -07:00
Jordan Rose
3425025134 ffi: Drop dependency on num_traits::ToPrimitive
We were only using it on enums, and unconditionally at that, so Rust's
built-in numeric casts will have the same effect.
2020-10-22 11:34:42 -07:00
Jordan Rose
c1ffb1b805 ffi: Expose named constants for CiphertextMessageType
Also:
- Expose them to Swift as well in a type-safe way
- Verify that each constant matches the encoding used in rust/protocol/
2020-10-22 11:34:25 -07:00
Jordan Rose
8b7363a1b0
Merge pull request #16 from signalapp/jrose/verifySignature-against-PublicKey
verifySignature(against:) takes a PublicKey, not a PrivateKey
2020-10-21 14:20:51 -07:00
Jordan Rose
7f88b80a12 verifySignature(against:) takes a PublicKey, not a PrivateKey 2020-10-21 13:01:02 -07:00
Jordan Rose
b712fc1ad0
Merge pull request #13 from signalapp/jrose/no-clean-necessary
ffi: Cache cbindgen intermediates from build to build
2020-10-19 15:08:09 -07:00
Jack Lloyd
5ece875587
Merge pull request #12 from signalapp/jack/jni-store-ctor
Remove some intermediate helper functions when creating JNI store objects
2020-10-19 16:53:35 -04:00
Jack Lloyd
aefc781fe2 cargo fmt 2020-10-19 16:44:39 -04:00
Jordan Rose
cc34341a73 ffi: Cache cbindgen intermediates from build to build 2020-10-19 12:22:11 -07:00
Jordan Rose
c3d5f4dbcb
Merge pull request #8 from signalapp/jrose/merge-swift
Merge libsignal-protocol-swift
2020-10-19 11:51:31 -07:00
Jack Lloyd
5c4ee6588c Remove some intermediate helper functions when creating JNI store objects
Closes #7
2020-10-19 14:50:30 -04:00
Jordan Rose
e6e389e643 Swift: Drop 'SignalProtocol' module and just use 'SignalClient'
We can use folders for grouping within targets, but it's not obvious
that "protocol" is a useful group for the stuff we have, long-term.
2020-10-19 11:29:30 -07:00
Jack Lloyd
c0b6076a2d
Merge pull request #3 from signalapp/jack/merge-jni
Merge libsignal-jni
2020-10-19 11:13:49 -04:00