Forgot to change the variable lol

This commit is contained in:
KnugiHK
2022-09-05 12:49:12 +08:00
parent 2f04b69f38
commit 23114572bd

View File

@@ -113,7 +113,7 @@ def decrypt_backup(database, key, output, crypt=Crypt.CRYPT14):
t1 = t2 = None
iv = database[8:24]
db_offset = database[0] + 2 # Skip protobuf + protobuf size and backup type
db_ciphertext = database[proto_len:]
db_ciphertext = database[db_offset:]
if t1 != t2:
raise ValueError("The signature of key file and backup file mismatch")