Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class HashAlgorithm h ⇒ SodiumHashAlgorithm h where Source #
∷ proxy h | |
→ Ptr a | input |
→ Int | input length |
→ IO (MLockedSizedBytes (SizeHash h)) |
Instances
SodiumHashAlgorithm Blake2b_256 Source # | |
Defined in Cardano.Crypto.Libsodium.Hash.Class naclDigestPtr ∷ proxy Blake2b_256 → Ptr a → Int → IO (MLockedSizedBytes (SizeHash Blake2b_256)) Source # | |
SodiumHashAlgorithm SHA256 Source # | |
Defined in Cardano.Crypto.Libsodium.Hash.Class naclDigestPtr ∷ proxy SHA256 → Ptr a → Int → IO (MLockedSizedBytes (SizeHash SHA256)) Source # |
digestMLockedStorable ∷ ∀ h a proxy. (SodiumHashAlgorithm h, Storable a) ⇒ proxy h → Ptr a → IO (MLockedSizedBytes (SizeHash h)) Source #
digestMLockedBS ∷ ∀ h proxy. SodiumHashAlgorithm h ⇒ proxy h → ByteString → IO (MLockedSizedBytes (SizeHash h)) Source #