NaCl-0.0.5.0: Easy-and-safe-to-use high-level Haskell bindings to NaCl
Safe HaskellNone
LanguageHaskell2010

NaCl.Hash.Internal

Description

Internals of crypto_hash.

Synopsis

Documentation

type HashSha256 a = SizedByteArray CRYPTO_HASH_SHA256_BYTES a Source #

Hash returned by sha256.

This type is parametrised by the actual data type that contains bytes. This can be, for example, a ByteString.

sha256 Source #

Arguments

:: (ByteArrayAccess pt, ByteArray hashBytes) 
=> pt

Message to hash

-> IO (HashSha256 hashBytes) 

Hash a message using SHA-256.

type HashSha512 a = SizedByteArray CRYPTO_HASH_SHA512_BYTES a Source #

Hash returned by sha512.

This type is parametrised by the actual data type that contains bytes. This can be, for example, a ByteString.

sha512 Source #

Arguments

:: (ByteArrayAccess pt, ByteArray hashBytes) 
=> pt

Message to hash

-> IO (HashSha512 hashBytes) 

Hash a message using SHA-512.