Copyright | (c) 2024 Auth Global |
---|---|
License | Apache2 |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Binding to SHA256, supporting streaming, backtracking, bitstring inputs, and (de)serialization of intermediate states.
Documentation
hash :: ByteString -> ByteString Source #
hash' :: ByteString -> HashString Source #
sha256_update :: Sha256Ctx -> ByteString -> Sha256Ctx Source #
sha256_feed :: ByteString -> Sha256Ctx -> Sha256Ctx Source #
sha256_updates :: Foldable f => Sha256Ctx -> f ByteString -> Sha256Ctx Source #
sha256_feeds :: Foldable f => f ByteString -> Sha256Ctx -> Sha256Ctx Source #
sha256_byteCount :: Sha256Ctx -> Word64 Source #
sha256_blockCount :: Sha256Ctx -> Word64 Source #
sha256_bufferLength :: Sha256Ctx -> Word8 Source #
sha256_state :: Sha256Ctx -> HashString Source #
sha256_finalizeBits :: ByteString -> Word64 -> Sha256Ctx -> HashString Source #
sha256_finalizeBytes :: ByteString -> Sha256Ctx -> HashString Source #