cacophony-0.10.1: A library implementing the Noise protocol.

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

Crypto.Noise.Internal.Handshake.Pattern

Description

 
Synopsis

Documentation

data Token next Source #

Constructors

E next 
S next 
Ee next 
Es next 
Se next 
Ss next 
Psk next 

data Message next Source #

data HandshakePattern Source #

This type represents a handshake pattern such as Noise_IK. A large set of pre-defined patterns can be found in Crypto.Noise.HandshakePatterns. Expert users are encouraged to define their own custom patterns with care.

newtype HasPSK Source #

Constructors

HasPSK 

Fields

handshakePattern :: ByteString -> MessageSequence () -> HandshakePattern Source #

Constructs a HandshakePattern given a protocol name (such as XXpsk3) and raw pattern. Please see the README for information about creating your own custom patterns.