cacophony-0.6.0: A library implementing the Noise protocol.

MaintainerJohn Galt <jgalt@centromere.net>
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Crypto.Noise.Types

Contents

Description

 

Synopsis

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.

newtype Plaintext Source

Represents plaintext which can be encrypted.

Constructors

Plaintext ScrubbedBytes