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
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
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
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
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
Jack Lloyd
c1331eb42f
Add license headers
2020-10-16 18:30:17 -04:00
Jack Lloyd
3d24f94cef
Update paths and workspace config
2020-10-16 18:26:26 -04:00
Jack Lloyd
52ae600210
Merge libsignal-jni history into libsignal-client
2020-10-16 18:19:11 -04:00
Jack Lloyd
e5840644c7
Move libsignal-jni to rust/bridge/jni
2020-10-16 18:17:21 -04:00
Jordan Rose
5bb6adc81f
Build libsignal-ffi as a staticlib for now
...
We don't want it to get linked into an app multiple times, but we also
have no reason to force the Swift wrapper to be a /separate/ dynamic
library.
2020-10-16 14:25:21 -07:00
Jordan Rose
c8834a875a
Add missing license headers to libsignal-ffi sources
2020-10-16 13:01:12 -07:00
Jordan Rose
2fb87a0ab4
ffi: Fold signal_ffi.h generation into the Rust build
...
We're going to need nightly Rust for other things anyway, so we may as
well drop the extra Makefile and just require Cargo.
Also, delete the pkg-config file now that we no longer need to access
libsignal_ffi from arbitrary locations.
2020-10-16 11:19:00 -07:00
Jordan Rose
0c996fe221
Add ffi to workspace and refer to libsignal-protocol-rust via path
2020-10-16 10:45:49 -07:00
Jordan Rose
2ea57f3582
Merge libsignal-ffi history into libsignal-client
2020-10-16 10:36:45 -07:00
Jordan Rose
e5e55b1cd1
Move libsignal-ffi to rust/bridge/ffi
2020-10-16 10:36:12 -07:00
Jack Lloyd
a0a4ffb40f
Move libsignal-protocol-rust to rust/protocol
2020-10-15 15:41:20 -04:00