| Maintainer | John Galt <jgalt@centromere.net> |
|---|---|
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Crypto.Noise.Internal.Types
Description
Documentation
data NoiseException Source #
Represents the various exceptions which can be thrown.
InvalidHandshakeOptionsoccurs when a key that is needed is missing, or when a key is provided that shouldn't be. For example, it would be an error for the initiator to provide a remote static key if using theNoise_NXpattern, because that key is transmitted during the handshake.DecryptionErroroccurs when a non-handshake message fails to be decrypted.HandshakeErroroccurs when a handshake message fails to be processed. This can be due to an invalid transmitted ephemeral key, a transmitted static key which fails to be decrypted, or a handshake message payload which fails to be decrypted.MessageLimitReachedoccurs if the user attempts to send or receive more than 2^64 messages. This is needed because nonces are 8-bytes (64 bits), and doing so would cause catastrophic key re-use.
Constructors
| InvalidHandshakeOptions String | |
| DecryptionError String | |
| HandshakeError String | |
| MessageLimitReached String |
Instances