Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.Crypto.Hash.Short
Description
Implementation of short hashing algorithm, suitable for testing as it's not very collision-resistant.
Documentation
data MD5Prefix (n :: Nat) Source #
Instances
(KnownNat n, CmpNat n 33 ~ 'LT) => HashAlgorithm (MD5Prefix n) Source # | |
Defined in Cardano.Crypto.Hash.Short Methods hashAlgorithmName :: proxy (MD5Prefix n) -> String Source # digest :: proxy (MD5Prefix n) -> ByteString -> ByteString Source # | |
type SizeHash (MD5Prefix n) Source # | |
Defined in Cardano.Crypto.Hash.Short |