Maintainer | John Galt <jgalt@centromere.net> |
---|---|
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
- type InboundNoisePipe = Pipe ByteString ScrubbedBytes
- type OutboundNoisePipe = Pipe ScrubbedBytes ByteString
- mkNoisePipes :: (Monad m, Cipher c, DH d, Hash h) => NoiseState c d h -> Maybe (InboundNoisePipe m (NoiseResult c d h), OutboundNoisePipe m (NoiseResult c d h))
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 :: (Monad m, Cipher c, DH d, Hash h) => NoiseState c d h -> Maybe (InboundNoisePipe m (NoiseResult c d h), OutboundNoisePipe m (NoiseResult c d h)) Source #
Creates a pair of Pipes, the first used for inbound messages and the
second used for outbound messages. Note: The handshake for the given
NoiseState
must be complete. If it is not, this function will return
Nothing
.