cacophony-0.10.0: A library implementing the Noise protocol.
Crypto.Noise.Hash.SHA256
Contents
Description
Synopsis
data SHA256 Source #
Represents the SHA256 hash.
Instances
Associated Types
data ChainingKey SHA256 :: * Source #
data Digest SHA256 :: * Source #
Methods
hashName :: proxy SHA256 -> ScrubbedBytes Source #
hashLength :: proxy SHA256 -> Int Source #
hash :: ScrubbedBytes -> Digest SHA256 Source #
hashHKDF :: ChainingKey SHA256 -> ScrubbedBytes -> Word8 -> [ScrubbedBytes] Source #
hashBytesToCK :: ScrubbedBytes -> ChainingKey SHA256 Source #
hashCKToBytes :: ChainingKey SHA256 -> ScrubbedBytes Source #
hashToBytes :: Digest SHA256 -> ScrubbedBytes Source #