Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/java/org/spongycastle/crypto/io/InvalidCipherTextIOException.java')
-rw-r--r--core/src/main/java/org/spongycastle/crypto/io/InvalidCipherTextIOException.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/src/main/java/org/spongycastle/crypto/io/InvalidCipherTextIOException.java b/core/src/main/java/org/spongycastle/crypto/io/InvalidCipherTextIOException.java
new file mode 100644
index 00000000..fd488a97
--- /dev/null
+++ b/core/src/main/java/org/spongycastle/crypto/io/InvalidCipherTextIOException.java
@@ -0,0 +1,19 @@
+package org.spongycastle.crypto.io;
+
+import java.io.IOException;
+
+/**
+ * {@link IOException} wrapper around an exception indicating an invalid ciphertext, such as in
+ * authentication failure during finalisation of an AEAD cipher. For use in streams that need to
+ * expose invalid ciphertext errors.
+ */
+public class InvalidCipherTextIOException
+ extends CipherIOException
+{
+ private static final long serialVersionUID = 1L;
+
+ public InvalidCipherTextIOException(String message, Throwable cause)
+ {
+ super(message, cause);
+ }
+} \ No newline at end of file