mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-24 12:20:42 +00:00
@@ -265,9 +265,12 @@ public class FullBackupExporter extends FullBackupBase {
|
||||
|
||||
while ((read = in.read(buffer)) != -1) {
|
||||
byte[] ciphertext = cipher.update(buffer, 0, read);
|
||||
|
||||
if (ciphertext != null) {
|
||||
outputStream.write(ciphertext);
|
||||
mac.update(ciphertext);
|
||||
}
|
||||
}
|
||||
|
||||
byte[] remainder = cipher.doFinal();
|
||||
outputStream.write(remainder);
|
||||
|
||||
Reference in New Issue
Block a user