Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/signalapp/libsignal
/ functions
Functions
8,820 in github.com/signalapp/libsignal
⨍
Functions
8,820
◇
Types & classes
2,843
↓ 1,475 callers
Method
into
Extracts the value from the TransformHelper and transforms it as requested. This isn't an actual implementation of Into (or From) because that would
rust/bridge/shared/types/src/support/transform_helper.rs:23
↓ 1,038 callers
Method
map
(self, f: impl FnOnce(T) -> U)
rust/net/chat/src/api/keytrans/maybe_partial.rs:60
↓ 708 callers
Method
clone
(&self)
rust/bridge/node/futures/src/future.rs:114
↓ 514 callers
Method
serialize
()
java/shared/java/org/signal/libsignal/protocol/message/CiphertextMessage.java:23
↓ 396 callers
Method
len
The number of permits requested.
rust/zkgroup/src/api/donations/donation_permit.rs:103
↓ 387 callers
Method
add
(&mut self, s: impl Into<Cow<'static, str>>, val: Scalar)
rust/poksho/src/args.rs:24
↓ 325 callers
Method
to_owned
(&self)
rust/net/chat/src/api/registration.rs:405
↓ 238 callers
Method
filterExceptions
Tries to run {@code f}, wrapping all checked exceptions in {@link AssertionError}. <p>See the class-level documentation for more details.
java/shared/java/org/signal/libsignal/internal/FilterExceptions.java:79
↓ 214 callers
Function
identity
(t: T)
node/ts/NiceConverters.ts:10
↓ 205 callers
Method
push
(&mut self, value: Handle<'a, impl Value>, cx: &mut Cx<'a>)
rust/bridge/node/src/lib.rs:51
↓ 198 callers
Method
collect
(self)
rust/net/src/cdsi.rs:351
↓ 191 callers
Method
into_iter
Returns an iterator that interleaves IPv6 and IPv4 addresses.
rust/net/infra/src/dns/lookup_result.rs:25
↓ 187 callers
Method
get
java/client/src/test/java/org/signal/libsignal/internal/TypedObjectHandleTest.kt:18
↓ 165 callers
Method
accept
(long value)
java/shared/java/org/signal/libsignal/internal/FilterExceptions.java:65
↓ 160 callers
Method
from
(message: DecryptionErrorMessage)
node/ts/index.ts:1084
↓ 156 callers
Method
guardedMap
(final LongFunction<T> function)
java/shared/java/org/signal/libsignal/internal/NativeHandleGuard.java:34
↓ 149 callers
Function
deserialize
Deserializes a type using the standard zkgroup encoding (based on bincode). The type must support [`PartialDefault`] to save on code size.
rust/zkgroup/src/common/serialization.rs:22
↓ 147 callers
Method
iter
(&self)
rust/keytrans/src/lib.rs:45
↓ 140 callers
Method
as_slice
(&self)
rust/bridge/shared/types/src/ffi/mod.rs:46
↓ 130 callers
Function
test_data
()
rust/net/src/svr2.rs:262
↓ 127 callers
Method
as_bytes
(&self)
rust/keytrans/src/vrf.rs:153
↓ 122 callers
Method
getPublicKey
()
java/shared/java/org/signal/libsignal/protocol/IdentityKey.java:42
↓ 117 callers
Method
eq
(&self, other: &PublicKey)
rust/core/src/curve.rs:215
↓ 114 callers
Function
serialize
Serializes a type using the standard zkgroup encoding (based on bincode).
rust/zkgroup/src/common/serialization.rs:38
↓ 112 callers
Method
getInternalContentsForJNI
()
java/shared/java/org/signal/libsignal/zkgroup/internal/ByteArray.java:51
↓ 109 callers
Method
iter
Allows iterating over the segments. SAFETY: Must be constructed correctly and refer to valid memory.
rust/bridge/shared/types/src/ffi/mod.rs:227
↓ 104 callers
Method
field
(&self, field: &protobuf::reflect::FieldDescriptor)
rust/message-backup/build.rs:15
↓ 104 callers
Method
set
(&mut self, privkey: &[u8])
rust/attest/src/snow_resolver.rs:48
↓ 102 callers
Method
check_exceptions
( self, env: &mut jni::Env<'_>, context: &'static str, )
rust/bridge/shared/types/src/jni/error.rs:341
↓ 100 callers
Method
getPublicKey
()
node/ts/zkgroup/ZkCredentialKey.ts:42
↓ 100 callers
Method
lock
(&self)
rust/bridge/shared/types/src/net/cdsi.rs:36
↓ 99 callers
Method
get
Gets the value for the first key that matches `key`, or `None`.
rust/attest/src/util.rs:38
↓ 98 callers
Method
get
Looks in the environment first, then in System properties, namespaced by {@link #PROPERTY_NAMESPACE}. <p>The Android runner manually propagates envir
java/shared/test/java/org/signal/libsignal/util/TestEnvironment.java:18
↓ 97 callers
Method
is_empty
(&self)
rust/net/infra/src/dns/lookup_result.rs:62
↓ 95 callers
Method
new
( mrenclave: Uint8Array<ArrayBuffer>, attestationMsg: Uint8Array<ArrayBuffer>, currentTimestamp: D
node/ts/index.ts:1525
↓ 94 callers
Method
and_then
(self, f: impl FnOnce(T) -> MaybePartial<U>)
rust/net/chat/src/api/keytrans/maybe_partial.rs:67
↓ 92 callers
Method
encode
( &mut self, item: Self::Item, dst: &mut tonic::codec::EncodeBuf<'_>, )
rust/net/chat/src/grpc.rs:113
↓ 88 callers
Method
randomize
(&mut self, rng: &mut impl Rng)
rust/message-backup/src/scramble/randomize.rs:21
↓ 86 callers
Method
ok
* `true` if the backup is valid, `false` otherwise. * * If this is `true`, there might still be messages about unknown fields.
node/ts/MessageBackup.ts:40
↓ 81 callers
Method
equals
(Object obj)
java/client/src/main/java/org/signal/libsignal/net/EnclaveAuth.java:27
↓ 81 callers
Method
fromStringCondensedAssert
(String encoded)
java/shared/java/org/signal/libsignal/protocol/util/Hex.java:60
↓ 80 callers
Method
as_ref
(&self)
rust/bridge/shared/types/src/net/chat.rs:326
↓ 80 callers
Method
transpose
(self)
rust/net/chat/src/api/keytrans/maybe_partial.rs:101
↓ 78 callers
Method
iter
(&self)
rust/net/infra/src/dns/lookup_result.rs:58
↓ 77 callers
Function
encrypt
( store: &mut InMemSignalProtocolStore, remote_address: &ProtocolAddress, local_address: &Protocol
rust/protocol/tests/support/mod.rs:31
↓ 77 callers
Method
is_empty
(&self)
rust/message-backup/src/backup/serialize/unordered_list.rs:42
↓ 76 callers
Method
guardedMapChecked
(final FilterExceptions.ThrowingLongFunction<T> function)
java/shared/java/org/signal/libsignal/internal/NativeHandleGuard.java:40
↓ 75 callers
Method
as_ref
(&self)
rust/protocol/src/protocol.rs:267
↓ 75 callers
Method
take
(&self)
rust/bridge/shared/types/src/net/chat.rs:787
↓ 73 callers
Method
chain
Create a chain of test certificates with a self-signed root Ordered from leaf to root
rust/attest/src/cert_chain.rs:286
↓ 73 callers
Function
decrypt
( store: &mut InMemSignalProtocolStore, remote_address: &ProtocolAddress, local_address: &Protocol
rust/protocol/tests/support/mod.rs:50
↓ 73 callers
Method
iter
(&self)
rust/zkgroup/src/common/array_utils.rs:26
↓ 72 callers
Method
generate
()
node/ts/zkgroup/ZkCredentialKey.ts:24
↓ 69 callers
Method
parse
(languages: &[impl Borrow<str>])
rust/net/src/chat.rs:151
↓ 68 callers
Method
generate
java/shared/java/org/signal/libsignal/protocol/ecc/ECKeyPair.kt:13
↓ 67 callers
Method
as_mut
Borrow `self` without consuming it. Makes up for `&mut` not being `Clone`, cf [`Option::as_mut`].
rust/net/src/env.rs:503
↓ 67 callers
Method
send
Sends a request to the server and waits for the response. If the request can't be sent or the response isn't received, this returns an error.
rust/net/src/chat/ws.rs:260
↓ 66 callers
Method
send
Convenience function that binary-encodes a [`prost::Message`] and passes the bytes to [`AttestedConnection::send_bytes`].
rust/net/infra/src/ws/attested.rs:124
↓ 65 callers
Method
decrypt
Decrypt a message. @param ciphertext The {@link PreKeySignalMessage} to decrypt. @return The plaintext. @throws InvalidMessageException if the input
java/shared/java/org/signal/libsignal/protocol/SessionCipher.java:193
↓ 65 callers
Function
process_prekey_bundle
( remote_address: &ProtocolAddress, local_address: &ProtocolAddress, session_store: &mut dyn Sessi
rust/protocol/src/session.rs:181
↓ 63 callers
Method
encrypt
Encrypt a message. @param paddedMessage The plaintext message bytes, optionally padded to a constant multiple. @return A ciphertext message encrypted
java/shared/java/org/signal/libsignal/protocol/SessionCipher.java:146
↓ 63 callers
Method
nativeHandle
Returns the native handle owned by the Java object, or 0 if the owner is {@code null}.
java/shared/java/org/signal/libsignal/internal/NativeHandleGuard.java:126
↓ 63 callers
Method
next
Returns the next route to try, or `None` if all routes are exhausted. This is functionally [`StreamExt::next`], but this type doesn't (yet) implement
rust/net/infra/src/route/schedule.rs:214
↓ 62 callers
Method
finish
Finishes the backup session. Performs the Expose operation if it failed in `start`, otherwise a noop. Will only poll the `conn` future if the connect
rust/net/src/svr2.rs:223
↓ 62 callers
Method
into_inner
(self)
rust/bridge/shared/types/src/ffi/mod.rs:412
↓ 62 callers
Method
isDone
()
java/shared/java/org/signal/libsignal/internal/CompletableFuture.java:85
↓ 60 callers
Method
as_ref
(&self)
rust/net/chat/src/api/keytrans.rs:186
↓ 56 callers
Method
createSecureRandom
(final byte[] nextRandom)
java/shared/test/java/org/signal/libsignal/zkgroup/SecureRandomTest.java:46
↓ 56 callers
Method
serialized
(&self)
rust/protocol/src/protocol.rs:151
↓ 53 callers
Method
makeCancellable
( abortSignal: AbortSignal | undefined, promise: Native.CancellablePromise<T> )
node/ts/net.ts:83
↓ 52 callers
Method
as_ref
(&self)
rust/net/src/svrb.rs:230
↓ 52 callers
Method
extend
(&mut self, iter: I)
rust/net/infra/src/utils/binary_heap.rs:89
↓ 52 callers
Method
replace_service_id
Consistently replaces a serialized ServiceId (or other UUID) across a backup. Despite the name, it is permitted to put arbitrary UUIDs in here, not j
rust/message-backup/src/scramble.rs:68
↓ 52 callers
Function
test_in_memory_protocol_store
()
rust/protocol/tests/support/mod.rs:22
↓ 51 callers
Method
TokioAsyncContext_new
java/shared/java/org/signal/libsignal/internal/Native.kt:1356
↓ 51 callers
Method
insert
Adds an id-counter pair to the guide.
rust/keytrans/src/guide.rs:136
↓ 51 callers
Method
iter
(&self)
rust/message-backup/src/backup/serialize/unordered_list.rs:46
↓ 51 callers
Method
write
(byte[] buffer)
java/shared/java/org/signal/libsignal/protocol/incrementalmac/IncrementalMacOutputStream.java:33
↓ 50 callers
Method
getContents
()
node/ts/zkgroup/internal/ByteArray.ts:42
↓ 50 callers
Method
len
(&self)
rust/net/infra/src/utils/binary_heap.rs:83
↓ 48 callers
Method
recv
Unwrap a ciphertext message that's been received, returning the plaintext.
rust/attest/src/client_connection.rs:82
↓ 48 callers
Function
test_account_data
()
rust/net/chat/src/api/keytrans.rs:661
↓ 47 callers
Method
getType
()
java/shared/java/org/signal/libsignal/protocol/message/CiphertextMessage.java:25
↓ 47 callers
Method
identity_key
(&self)
rust/protocol/src/protocol.rs:428
↓ 47 callers
Function
new_js_error
( cx: &mut Cx<'cx>, name: Option<&str>, message: &str, operation: &str, make_extra_props:
rust/bridge/shared/types/src/node/error.rs:42
↓ 46 callers
Method
concat
(&self)
rust/account-keys/src/hash.rs:147
↓ 45 callers
Function
new_instance
Looks up a class by name and constructs a new instance using [`new_object`].
rust/bridge/shared/types/src/jni/mod.rs:1345
↓ 45 callers
Method
push
(&mut self, item: Self::Item)
rust/net/infra/src/utils/binary_heap.rs:67
↓ 44 callers
Method
sendResponse
( long requestId, int status, String message, String[] headers, byte[] body)
java/client/src/main/java/org/signal/libsignal/net/FakeChatRemote.java:53
↓ 42 callers
Method
fakeConnect
Test-only method to create a {@code ProvisioningConnection} connected to a fake remote. <p>The returned {@link FakeChatRemote} can be used to send me
java/client/src/main/java/org/signal/libsignal/net/ProvisioningConnection.java:113
↓ 42 callers
Method
get
(&self, key: Key)
rust/bridge/shared/types/src/net/remote_config.rs:196
↓ 42 callers
Method
get_identity_key_pair
(&self)
rust/protocol/src/storage/inmem.rs:52
↓ 41 callers
Function
assertDeserializeInvalidThrows
( constructor: new (serialized: Uint8Array<ArrayBuffer>) => T )
node/ts/test/ZKGroup-test.ts:110
↓ 41 callers
Method
load_session
(&self, address: &ProtocolAddress)
rust/protocol/src/storage/inmem.rs:313
↓ 41 callers
Function
no_network_change_events
()
rust/net/infra/src/utils.rs:117
↓ 40 callers
Method
context
(mut self, context: C)
rust/attest/src/error.rs:37
↓ 39 callers
Function
channel
()
rust/net/infra/src/utils/oneshot_broadcast.rs:47
↓ 39 callers
Function
connect
Attempt to connect to routes from the given [`RouteProvider`]. Generates the sequence of routes from the given `RouteProvider` and then attempts to c
rust/net/infra/src/route.rs:314
↓ 39 callers
Method
sendReplyTo
( request: InternalRequest, response: Omit<ServerResponse, 'id'> )
node/ts/net/FakeChat.ts:105
↓ 38 callers
Method
into_iter
(self)
rust/bridge/shared/types/src/support/sequences.rs:56
next →
1–100 of 8,820, ranked by callers