diff --git a/app/src/main/java/com/kunzisoft/keepass/database/file/output/DatabaseOutputKDB.kt b/app/src/main/java/com/kunzisoft/keepass/database/file/output/DatabaseOutputKDB.kt index 57a6a835d..8d3b9547b 100644 --- a/app/src/main/java/com/kunzisoft/keepass/database/file/output/DatabaseOutputKDB.kt +++ b/app/src/main/java/com/kunzisoft/keepass/database/file/output/DatabaseOutputKDB.kt @@ -70,14 +70,8 @@ class DatabaseOutputKDB(private val mDatabaseKDB: DatabaseKDB, .cipherEngine.getCipher(Cipher.ENCRYPT_MODE, finalKey ?: ByteArray(0), header.encryptionIV) - } catch (e1: NoSuchAlgorithmException) { - throw IOException("No such algorithm") - } catch (e1: NoSuchPaddingException) { - throw IOException("No such padding") - } catch (e1: InvalidKeyException) { - throw IOException("Invalid key") - } catch (e1: InvalidAlgorithmParameterException) { - throw IOException("Invalid algorithm parameter.") + } catch (e: Exception) { + throw IOException("Algorithm not supported.", e) } try {