Fix something

This commit is contained in:
andrew 2023-05-05 12:37:46 +09:30
parent 9e6d1e27fc
commit 6a5d97a0f0

View File

@ -279,7 +279,7 @@ object FullBackupExporter {
return false
}
private class BackupFrameOutputStream : Closeable, Flushable {
private class BackupFrameOutputStream(outputStream: OutputStream, passphrase: String) : Closeable, Flushable {
private val outputStream: OutputStream
private var cipher: Cipher
@ -290,7 +290,7 @@ object FullBackupExporter {
private var counter: Int = 0
private constructor(outputStream: OutputStream, passphrase: String) : super() {
init {
try {
val salt = Util.getSecretBytes(32)
val key = BackupUtil.computeBackupKey(passphrase, salt)