Class DocumentIntegrityException
Thrown when decryption succeeded — the password verified — but the integrity check over the decrypted payload failed, meaning the ciphertext was altered or truncated after it was written.
Reported separately from InvalidPasswordException on purpose: a wrong password is a user error and a failed HMAC is a damaged or tampered file, and collapsing them sends the caller looking in the wrong place.
public sealed class DocumentIntegrityException : DocWrightException, ISerializable
- Inheritance
-
DocumentIntegrityException
- Implements
- Inherited Members
Constructors
- DocumentIntegrityException()
Initializes the exception.
- DocumentIntegrityException(string)
Initializes the exception with a message.
- DocumentIntegrityException(string, Exception?)
Initializes the exception with a message and an inner exception.