if (_aesHeader!.encryptionStrength == 1) {
// 128-bit
salt = input.readBytes(8).toUint8List();
keySize = 16;
} else if (_aesHeader!.encryptionStrength == 1) {
// 192-bit
salt = input.readBytes(12).toUint8List();
keySize = 24;
} else {
// 256-bit
salt = input.readBytes(16).toUint8List();
keySize = 32;
}
Look at how the if and the else if have the same condition: That means that the else if can never be true, so 192-bit encryption gets processed as 256-bit encryption.
zip_file.dart currently contains the following:
Look at how the
if
and theelse if
have the same condition: That means that theelse if
can never be true, so 192-bit encryption gets processed as 256-bit encryption.