Use AEP when validating backup.
This commit is contained in:
parent
a74ae00bb4
commit
10ae26c924
1 changed files with 2 additions and 2 deletions
|
@ -844,8 +844,8 @@ object BackupRepository {
|
|||
}
|
||||
|
||||
fun validate(length: Long, inputStreamFactory: () -> InputStream, selfData: SelfData): ValidationResult {
|
||||
val masterKey = SignalStore.svr.masterKey
|
||||
val key = LibSignalMessageBackupKey(masterKey.serialize(), Aci.parseFromBinary(selfData.aci.toByteArray()))
|
||||
val accountEntropyPool = SignalStore.account.accountEntropyPool.value
|
||||
val key = LibSignalMessageBackupKey(accountEntropyPool, Aci.parseFromBinary(selfData.aci.toByteArray()))
|
||||
|
||||
return MessageBackup.validate(key, MessageBackup.Purpose.REMOTE_BACKUP, inputStreamFactory, length)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue