Commit Graph

346 Commits

Author SHA1 Message Date
moiseev-signal
7c8cb0c5fc
keytrans: Add reset account data field function
Some checks failed
[CI] Check Versions / Check version number consistency (push) Has been cancelled
2026-05-16 12:07:54 -07:00
Jordan Rose
fb9407cbcb chat: Expose a raw_grpc endpoint 2026-05-14 10:57:50 -07:00
Jordan Rose
af55da7bbd bridge: Expose FakeChatRemote gRPC testing endpoints to apps 2026-05-14 09:49:36 -07:00
Jordan Rose
875f93019b Add JSON conversion and gRPC framing APIs for testing 2026-05-14 09:49:36 -07:00
Jordan Rose
d0b3edc0f1 Add grpcOverrides to FakeChatRemote
Unused until we have H2 support as well (coming soon!)
2026-05-14 09:49:36 -07:00
moiseev-signal
6e5a0466b3
Remove unused SignalMessage.verifyMac 2026-05-08 15:18:31 -07:00
gram-signal
2486ffe4e2
SPQR: API changes to allow remote config for archiving non-PQ sessions. 2026-05-08 14:06:24 -07:00
marc-signal
202df549ef
Check identity key and service id to determine a self-message 2026-04-27 15:21:22 -04:00
moiseev-signal
8582eb70d6
java: Properly handle empty attachments in incremental mac stream 2026-04-21 16:13:35 -07:00
Jordan Rose
3ae7241bc1
Expose AuthMessagesService.sendMessage and sendSyncMessage 2026-04-21 13:23:10 -07:00
Jordan Rose
bddcb4e15f
Expose UnauthMessagesService.sendMessage 2026-04-21 11:17:39 -07:00
moiseev-signal
c683a45242
keytrans: Persist latest distinguished tree head in local store 2026-04-10 14:32:20 -07:00
marc-signal
b58bd7d5df
Bridge backup uploads to clients 2026-04-09 18:31:22 -04:00
Jordan Rose
5835078f50 java: Test verification of the V4 ProfileKeyCredentialPresentation 2026-04-07 16:09:10 -07:00
marc-signal
8418be45db
Support upload size arguments in getUploadSize() 2026-04-01 15:00:16 -04:00
Rolfe Schmidt
81afdfe2fa
MAC sender ID 2026-04-01 11:22:54 -06:00
marc-signal
400a021c2b
Log a backtrace on panic 2026-03-31 12:12:40 -04:00
Jordan Rose
8df85d3c0b
chat: Add UserBasedAuthorization::UnrestrictedUnidentifiedAccess
...for users with "allow sealed sender from everyone".
2026-03-30 09:50:48 -07:00
Rolfe Schmidt
98794de745
1:1 decryption takes local address 2026-03-27 16:45:07 -06:00
moiseev-signal
467cd795e5
keytrans: Simplify the top-level API 2026-03-26 14:30:47 -07:00
marc-signal
c706b7f5ce
Expose getUploadForm() to clients
Co-authored-by: Jordan Rose <jrose@signal.org>
2026-03-24 14:32:59 -04:00
marc-signal
a47ba487a7
Add getPreKeys() client library 2026-03-17 13:18:06 -04:00
marc-signal
f6c4ff2e8d
Allow kotlin.Pair getters to be called from native 2026-03-16 13:11:33 -04:00
Jordan Rose
657d185fb8 bridge: Use bridge_callbacks for IdentityKeyStore in Java 2026-03-13 15:16:30 -07:00
andrew-signal
5efc009a63
java: Bridge BackupJsonExporter for takeout export 2026-03-10 14:15:57 -04:00
Jordan Rose
d604dbd076 bridge: Use bridge_callbacks for SessionStore in Java and Node 2026-03-05 15:50:01 -08:00
Jordan Rose
32bef826ac java: Declare internal stores as returning nullable values
...matching the #[bridge_callbacks] traits in protocol/storage.rs.
This is a place where the different platforms have historically
diverged, but given that the public-facing traits are declared in Java
and the Rust side can handle null, the glue code should not rule it
out.
2026-03-05 15:50:01 -08:00
Jordan Rose
ea62515452 Rename internal.kt to Internal.kt
...per Kotlin conventions (even for files containing multiple classes).
Now we can remove the suppressed lint.
2026-02-26 13:41:08 -08:00
Jordan Rose
352d170876 bridge: Use bridge_callbacks for SenderKeyStore in Java and Node 2026-02-26 13:41:08 -08:00
Jordan Rose
e5647239d8 bridge: Use bridge_callbacks for KyberPreKeyStore in Java and Node too 2026-02-20 09:45:28 -08:00
Jordan Rose
606072ab92 bridge: Use bridge_callbacks for SignedPreKeyStore in Java and Node too 2026-02-11 13:07:49 -08:00
marc-signal
6dd67d52e8
Remove ordered public key comparison 2026-02-02 13:37:11 -05:00
Jordan Rose
6a9f73b998 bridge: Use bridge_callbacks for PreKeyStore (Java bridge)
Adds support for callbacks with results to the JNI bridge, similar to
what f2eafbe6f8 did for the C bridge.

This does require introducing an "internal" version of PreKeyStore
that has simpler signatures for its callbacks; previously, the Java
objects for bridge_handle types were constructed on the Rust side of
the bridge, but that's not how bridge_fn works, and so it's not how
bridge_callbacks works. The additional overhead should not be
prohibitive.
2026-01-29 15:50:16 -08:00
marc-signal
53380fca8e
Add accountExists typed API 2026-01-26 15:56:52 -05:00
Jordan Rose
37dda46866 bridge_callbacks: Add JNI support
This required some changes to jni::ResultTypeInfo, because we no
longer have tokens available for the JNI types of a bridged function
to use with the jni_args! macro. Instead, we record signatures for
each type that might appear as a callback argument and use
const_str::concat to put them together.

This does not currently attempt to autogenerate the Java interface on
the other side of the bridge; given the way gen_java_decl builds on
top of cbindgen, this is likely tricky but not impossible. Something
to possibly add later.
2026-01-07 13:02:45 -08:00
Jordan Rose
40940e4c31
java: Expose Network.connectProvisioning and ProvisioningConnection 2025-12-15 16:17:43 -08:00
Jordan Rose
7475974889 ProGuard: keep kotlin.Pair's constructor 2025-11-06 17:17:49 -08:00
Jordan Rose
776cf0601e Remove deprecated overloads of KyberPreKeyStore.markKyberPreKeyUsed 2025-11-06 16:10:09 -08:00
moiseev-signal
177a495eba
java: Use kotlin.Pair 2025-11-06 15:37:29 -08:00
Jordan Rose
82d72ab7a2 jni: Preserve Pair element types in Native.kt 2025-10-21 15:01:45 -07:00
Jordan Rose
b6a05a4a7e
java: Expose UnauthUsernamesService.lookUpUsernameLink 2025-10-17 13:13:30 -07:00
Jordan Rose
baec47e62e bridge: Add UnauthenticatedChatConnection_look_up_username_link 2025-10-17 12:14:40 -07:00
Jordan Rose
db27d57d0c java: Relax bridging test added in 417673dab 2025-10-16 11:01:42 -07:00
Jordan Rose
417673dab8
jni: When exception conversion fails, make an AssertionError instead
This can fail too, but we should at least try.
2025-10-15 17:46:44 -07:00
Jordan Rose
2b6c801fb6
bridge: Expose sendMultiRecipientMessage in UnauthMessagesService 2025-10-14 18:17:25 -07:00
Jordan Rose
279390b4f2
Incremental MAC: Check digest length when initializing ValidatingMac 2025-10-14 16:30:10 -07:00
Jordan Rose
388e294acf bridge: Eliminate FakeChatSentRequest in favor of pairs 2025-10-10 16:56:15 -07:00
Jordan Rose
4503a19190 Unify IdentityKeyPair_Deserialize implementations
...in the process revealing that the Java declaration had a missing
exception spec.
2025-10-09 11:31:20 -07:00
Jordan Rose
fb570d7c99 bridge: Add support for returning pairs from bridge_fns 2025-10-09 11:31:20 -07:00
gram-signal
533d11dd7c
Remove usePqRatchet from client-facing code, defaulting to always use. 2025-10-02 11:32:36 -07:00