try {
input = openFile(toDecrypt);
extractEncryptedDataList(input);
extractPrivateKeyAndData(decryptionKey, decryptionKeyPassword);
byte[] decrypted = extractMessage();
MessageIntegrity integrity = verifyIntegrity();
return new Result(decrypted, message.getFileName(), authenticationStatus, integrity);
} finally {
KongaIoUtils.close(input);
}
}