pipes-cacophony-0.4.1: Pipes for Noise-secured network connections.

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

Pipes.Noise

Contents

Description

 

Synopsis

Types

type InboundNoisePipe = Pipe ByteString ScrubbedBytes Source #

Pipe used for inbound Noise messages.

type OutboundNoisePipe = Pipe ScrubbedBytes ByteString Source #

Pipe used for outbound Noise messages.

Pipes

mkNoisePipes :: (MonadIO m, Cipher c, DH d, Hash h) => NoiseState c d h -> IO (InboundNoisePipe m (Either SomeException ()), OutboundNoisePipe m (Either SomeException ())) Source #

Creates a pair of Pipes, the first used for inbound messages and the second used for outbound messages.