| License | BSD-style |
|---|---|
| Maintainer | Vincent Hanquez <vincent@snarc.org> |
| Stability | experimental |
| Portability | unknown |
| Safe Haskell | Trustworthy |
| Language | Haskell98 |
Crypto.Hash.Types
Contents
Description
Crypto hash types definitions
Synopsis
- newtype Context a = Context (Context a)
- newtype Digest a = Digest (Digest a)
- contextToByteString :: Context a -> ByteString
- digestToByteString :: Digest a -> ByteString
Documentation
Represent a context for a given hash algorithm.
Constructors
| Context (Context a) |
Instances
| Byteable (Context a) Source # | |
Defined in Crypto.Hash.Types Methods toBytes :: Context a -> ByteString byteableLength :: Context a -> Int withBytePtr :: Context a -> (Ptr Word8 -> IO b) -> IO b | |
Represent a digest for a given hash algorithm.
Constructors
| Digest (Digest a) |
deprecated
contextToByteString :: Context a -> ByteString Source #
digestToByteString :: Digest a -> ByteString Source #
Deprecated: use toBytes from byteable:Data.Byteable
return the binary bytestring. deprecated use toBytes.