mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-23 03:05:26 +00:00
Bump libsignal to v0.83.0
This commit is contained in:
committed by
Michelle Tang
parent
5b8750a84f
commit
d36a4232be
@@ -174,8 +174,7 @@ public class ApplicationDependencyProvider implements AppDependencies.Provider {
|
||||
Optional.of(new SecurityEventListener(context)),
|
||||
SignalExecutors.newCachedBoundedExecutor("signal-messages", ThreadUtil.PRIORITY_IMPORTANT_BACKGROUND_THREAD, 1, 16, 30),
|
||||
RemoteConfig.maxEnvelopeSizeBytes(),
|
||||
RemoteConfig::useMessageSendRestFallback,
|
||||
RemoteConfig.usePqRatchet());
|
||||
RemoteConfig::useMessageSendRestFallback);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -151,7 +151,7 @@ object MessageDecryptor {
|
||||
|
||||
return try {
|
||||
val startTimeNanos = System.nanoTime()
|
||||
val cipherResult: SignalServiceCipherResult? = cipher.decrypt(envelope, serverDeliveredTimestamp, RemoteConfig.usePqRatchet)
|
||||
val cipherResult: SignalServiceCipherResult? = cipher.decrypt(envelope, serverDeliveredTimestamp)
|
||||
val endTimeNanos = System.nanoTime()
|
||||
|
||||
if (cipherResult == null) {
|
||||
|
||||
@@ -11,7 +11,6 @@ import org.signal.core.util.gibiBytes
|
||||
import org.signal.core.util.kibiBytes
|
||||
import org.signal.core.util.logging.Log
|
||||
import org.signal.core.util.mebiBytes
|
||||
import org.signal.libsignal.protocol.UsePqRatchet
|
||||
import org.thoughtcrime.securesms.dependencies.AppDependencies
|
||||
import org.thoughtcrime.securesms.groups.SelectionLimits
|
||||
import org.thoughtcrime.securesms.jobs.RemoteConfigRefreshJob
|
||||
@@ -1165,16 +1164,6 @@ object RemoteConfig {
|
||||
durationUnit = DurationUnit.DAYS
|
||||
)
|
||||
|
||||
/** Whether or not to use the new post-quantum ratcheting. */
|
||||
@JvmStatic
|
||||
@get:JvmName("usePqRatchet")
|
||||
val usePqRatchet: UsePqRatchet by remoteValue(
|
||||
key = "android.usePqRatchet",
|
||||
hotSwappable = false
|
||||
) { value ->
|
||||
if (value.asBoolean(false)) UsePqRatchet.YES else UsePqRatchet.NO
|
||||
}
|
||||
|
||||
/** The maximum allowed envelope size for messages we send. */
|
||||
@JvmStatic
|
||||
@get:JvmName("maxEnvelopeSizeBytes")
|
||||
|
||||
Reference in New Issue
Block a user