diff options
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.java | 19 |
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 |