Safe Haskell | None |
---|---|
Language | Haskell98 |
- sha1Input :: InputStream ByteString -> IO (InputStream ByteString, IO (Digest SHA1State))
- sha224Input :: InputStream ByteString -> IO (InputStream ByteString, IO (Digest SHA256State))
- sha256Input :: InputStream ByteString -> IO (InputStream ByteString, IO (Digest SHA256State))
- sha384Input :: InputStream ByteString -> IO (InputStream ByteString, IO (Digest SHA512State))
- sha512Input :: InputStream ByteString -> IO (InputStream ByteString, IO (Digest SHA512State))
- checkedSha1Input :: Digest SHA1State -> InputStream ByteString -> IO (InputStream ByteString)
- checkedSha224Input :: Digest SHA256State -> InputStream ByteString -> IO (InputStream ByteString)
- checkedSha256Input :: Digest SHA256State -> InputStream ByteString -> IO (InputStream ByteString)
- checkedSha384Input :: Digest SHA512State -> InputStream ByteString -> IO (InputStream ByteString)
- checkedSha512Input :: Digest SHA512State -> InputStream ByteString -> IO (InputStream ByteString)
- checkedSha1Input' :: String -> InputStream ByteString -> IO (InputStream ByteString)
- checkedSha224Input' :: String -> InputStream ByteString -> IO (InputStream ByteString)
- checkedSha256Input' :: String -> InputStream ByteString -> IO (InputStream ByteString)
- checkedSha384Input' :: String -> InputStream ByteString -> IO (InputStream ByteString)
- checkedSha512Input' :: String -> InputStream ByteString -> IO (InputStream ByteString)
- shaInput :: Decoder a -> (Decoder a -> Int -> Digest a) -> InputStream ByteString -> IO (InputStream ByteString, IO (Digest a))
- checkedShaInput :: Decoder a -> (Decoder a -> Int -> Digest a) -> String -> InputStream ByteString -> IO (InputStream ByteString)
- modifyRef :: IORef a -> (a -> a) -> IO ()
- data UnmatchedSHAException = UnmatchedSHAException
Documentation
sha1Input :: InputStream ByteString -> IO (InputStream ByteString, IO (Digest SHA1State)) Source
sha224Input :: InputStream ByteString -> IO (InputStream ByteString, IO (Digest SHA256State)) Source
sha256Input :: InputStream ByteString -> IO (InputStream ByteString, IO (Digest SHA256State)) Source
sha384Input :: InputStream ByteString -> IO (InputStream ByteString, IO (Digest SHA512State)) Source
sha512Input :: InputStream ByteString -> IO (InputStream ByteString, IO (Digest SHA512State)) Source
checkedSha1Input :: Digest SHA1State -> InputStream ByteString -> IO (InputStream ByteString) Source
checkedSha224Input :: Digest SHA256State -> InputStream ByteString -> IO (InputStream ByteString) Source
checkedSha256Input :: Digest SHA256State -> InputStream ByteString -> IO (InputStream ByteString) Source
checkedSha384Input :: Digest SHA512State -> InputStream ByteString -> IO (InputStream ByteString) Source
checkedSha512Input :: Digest SHA512State -> InputStream ByteString -> IO (InputStream ByteString) Source
shaInput :: Decoder a -> (Decoder a -> Int -> Digest a) -> InputStream ByteString -> IO (InputStream ByteString, IO (Digest a)) Source
Inspired by countInput
. The returned IO action can be run only
when the input stream is exhausted, otherwise an error occurs.
checkedShaInput :: Decoder a -> (Decoder a -> Int -> Digest a) -> String -> InputStream ByteString -> IO (InputStream ByteString) Source
This returns an input stream exactly as the one being wrapped, but throws an error if the computed SHA hash does not match the one given.