cardano-crypto-class-2.2.0.0: Type classes abstracting over cryptography primitives for Cardano
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Crypto.Libsodium.Hash.Class

Documentation

class HashAlgorithm h ⇒ SodiumHashAlgorithm h where Source #

Methods

naclDigestPtr Source #

Arguments

∷ proxy h 
Ptr a

input

Int

input length

IO (MLockedSizedBytes (SizeHash h)) 

digestMLockedStorable ∷ ∀ h a proxy. (SodiumHashAlgorithm h, Storable a) ⇒ proxy h → Ptr a → IO (MLockedSizedBytes (SizeHash h)) Source #

digestMLockedBS ∷ ∀ h proxy. SodiumHashAlgorithm h ⇒ proxy h → ByteStringIO (MLockedSizedBytes (SizeHash h)) Source #