mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Ensure one-time kyber prekeys are generated during change number.
This commit is contained in:
@@ -201,8 +201,8 @@ public class PreKeyUtil {
|
||||
}
|
||||
|
||||
public synchronized static void storeLastResortKyberPreKey(@NonNull SignalServiceAccountDataStore protocolStore, @NonNull PreKeyMetadataStore metadataStore, KyberPreKeyRecord record) {
|
||||
Log.i(TAG, "Storing kyber prekeys...");
|
||||
protocolStore.storeKyberPreKey(record.getId(), record);
|
||||
Log.i(TAG, "Storing last resort kyber prekeys...");
|
||||
protocolStore.storeLastResortKyberPreKey(record.getId(), record);
|
||||
metadataStore.setNextKyberPreKeyId((record.getId() + 1) % Medium.MAX_VALUE);
|
||||
}
|
||||
|
||||
|
||||
@@ -204,7 +204,7 @@ public class SignalServiceAccountDataStoreImpl implements SignalServiceAccountDa
|
||||
|
||||
@Override
|
||||
public void storeLastResortKyberPreKey(int kyberPreKeyId, @NonNull KyberPreKeyRecord kyberPreKeyRecord) {
|
||||
kyberPreKeyStore.storeKyberPreKey(kyberPreKeyId, kyberPreKeyRecord);
|
||||
kyberPreKeyStore.storeLastResortKyberPreKey(kyberPreKeyId, kyberPreKeyRecord);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user