pkgsrc-WIP-cvs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: wip/hs-cryptohash
Module name: wip
Committed by: szptvlfn
Date: Sun Apr 21 09:30:24 UTC 2013
Added Files:
wip/hs-cryptohash: DESCR Makefile PLIST buildlink3.mk distinfo
Log Message:
A collection of crypto hashes, with a practical incremental and one-pass,
pure APIs, with performance close to the fastest implementations available
in others languages.
The implementations are made in C with a haskell FFI wrapper that hide the
C implementation.
Simple examples using the unified API:
import Crypto.Hash
sha1 :: ByteString -> Digest SHA1
sha1 = hash
hexSha3_512 :: ByteString -> String
hexSha3_512 bs = show (hash bs :: Digest SHA3_512)
Simple examples using the module API:
import qualified Crypto.Hash.SHA1 as SHA1
main = putStrLn $ show $ SHA1.hash (Data.ByteString.pack [1..256])
import qualified Crypto.Hash.SHA3 as SHA3
main = putStrLn $ show $ digest
where digest = SHA3.finalize ctx
ctx = foldl' SHA3.update iCtx (map Data.ByteString.pack [ [1,2,3],
[4,5,6] ]
iCtx = SHA3.init 224
To generate a diff of this commit:
cvs -z3 rdiff -u -r0 -r1.1 wip/hs-cryptohash/DESCR \
wip/hs-cryptohash/Makefile wip/hs-cryptohash/PLIST \
wip/hs-cryptohash/buildlink3.mk wip/hs-cryptohash/distinfo
To view a diff of this commit:
http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/hs-cryptohash/DESCR?r1=0&r2=1.1
http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/hs-cryptohash/Makefile?r1=0&r2=1.1
http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/hs-cryptohash/PLIST?r1=0&r2=1.1
http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/hs-cryptohash/buildlink3.mk?r1=0&r2=1.1
http://pkgsrc-wip.cvs.sourceforge.net/pkgsrc-wip/wip/hs-cryptohash/distinfo?r1=0&r2=1.1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
pkgsrc-wip-cvs mailing list
pkgsrc-wip-cvs%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-cvs
Home |
Main Index |
Thread Index |
Old Index