diff --git a/main/filesystem-crypto/pom.xml b/main/filesystem-crypto/pom.xml
index 35f308aeb..bbc582be6 100644
--- a/main/filesystem-crypto/pom.xml
+++ b/main/filesystem-crypto/pom.xml
@@ -19,7 +19,7 @@
1.51
- 1.0.7
+ 1.0.8
diff --git a/main/filesystem-crypto/src/main/java/org/cryptomator/crypto/engine/impl/FilenameCryptorImpl.java b/main/filesystem-crypto/src/main/java/org/cryptomator/crypto/engine/impl/FilenameCryptorImpl.java
index 75408f609..e19cb0e25 100644
--- a/main/filesystem-crypto/src/main/java/org/cryptomator/crypto/engine/impl/FilenameCryptorImpl.java
+++ b/main/filesystem-crypto/src/main/java/org/cryptomator/crypto/engine/impl/FilenameCryptorImpl.java
@@ -15,6 +15,7 @@ import java.security.NoSuchAlgorithmException;
import java.util.regex.Pattern;
import javax.crypto.AEADBadTagException;
+import javax.crypto.IllegalBlockSizeException;
import javax.crypto.SecretKey;
import org.apache.commons.codec.binary.Base32;
@@ -70,8 +71,8 @@ class FilenameCryptorImpl implements FilenameCryptor {
try {
final byte[] cleartextBytes = AES_SIV.get().decrypt(encryptionKey, macKey, encryptedBytes, associatedData);
return new String(cleartextBytes, UTF_8);
- } catch (AEADBadTagException e) {
- throw new AuthenticationFailedException("Authentication failed.", e);
+ } catch (AEADBadTagException | IllegalBlockSizeException e) {
+ throw new AuthenticationFailedException("Invalid ciphertext.", e);
}
}