Maintainer | John Galt <jgalt@centromere.net> |
---|---|
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Types
data NoiseException Source
Represents exceptions which can occur. DecryptionFailure
is thrown
if a symmetric decryption operation fails, which is usually the result
of an invalid authentication tag. HandshakeStateFailure
is thrown if
the HandshakeState
is improperly initialized
for the given handshake type. HandshakeAborted
is thrown if the
handshake is aborted by the hscbStaticIn
function.
If your goal is to detect an invalid PSK, prologue, etc, you'll want
to catch DecryptionFailure
.