cacophony-0.1.0.0: A library implementing the Noise protocol.

MaintainerJohn Galt <centromere@users.noreply.github.com>
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Crypto.Noise.Types

Contents

Description

 

Synopsis

Types

data ScrubbedBytes :: *

ScrubbedBytes is a memory chunk which have the properties of:

  • Being scrubbed after its goes out of scope.
  • A Show instance that doesn't actually show any content
  • A Eq instance that is constant time

Functions

convert :: (ByteArrayAccess bin, ByteArray bout) => bin -> bout

Convert a bytearray to another type of bytearray

append :: ByteArray bs => bs -> bs -> bs

append one bytearray to the other