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

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

Pipes.Noise

Contents

Description

 

Synopsis

Types

type MessagePipe = Pipe ByteString ByteString Source

Message pipes transform ByteStrings.

Pipes

messageEncryptPipe :: Cipher c => MVar (SendingCipherState c) -> MessagePipe IO r Source

Creates a new MessagePipe exclusively for encryption.

messageDecryptPipe :: Cipher c => MVar (ReceivingCipherState c) -> MessagePipe IO r Source

Creates a new MessagePipe exclusively for decryption.