Log exception if AES decryption fails using specific algorithm settings.

This commit is contained in:
CalDescent 2022-08-20 12:27:17 +01:00
parent 3612fd8257
commit 4d97586f82

View File

@ -414,6 +414,7 @@ public class ArbitraryDataReader {
this.decryptUsingAlgo("AES/CBC/PKCS5Padding");
} catch (DataException e) {
LOGGER.info("Unable to decrypt using specific parameters: {}", e.getMessage());
// Something went wrong, so fall back to default AES params (necessary for legacy resource support)
this.decryptUsingAlgo("AES");