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

Cardano.Crypto.Libsodium.Hash

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 :: forall h a proxy. (SodiumHashAlgorithm h, Storable a) => proxy h -> Ptr a -> MLockedSizedBytes (SizeHash h) Source #