|
|
@ -265,9 +265,12 @@ public class FullBackupExporter extends FullBackupBase {
|
|
|
|
|
|
|
|
|
|
|
|
while ((read = in.read(buffer)) != -1) {
|
|
|
|
while ((read = in.read(buffer)) != -1) {
|
|
|
|
byte[] ciphertext = cipher.update(buffer, 0, read);
|
|
|
|
byte[] ciphertext = cipher.update(buffer, 0, read);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ciphertext != null) {
|
|
|
|
outputStream.write(ciphertext);
|
|
|
|
outputStream.write(ciphertext);
|
|
|
|
mac.update(ciphertext);
|
|
|
|
mac.update(ciphertext);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
byte[] remainder = cipher.doFinal();
|
|
|
|
byte[] remainder = cipher.doFinal();
|
|
|
|
outputStream.write(remainder);
|
|
|
|
outputStream.write(remainder);
|
|
|
|