Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 102 lines (95 sloc) 3.667 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
Name: cryptohash
Version: 0.6.1
Description:
    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.

License: BSD3
License-file: LICENSE
Copyright: Vincent Hanquez <vincent@snarc.org>
Author: Vincent Hanquez <vincent@snarc.org>
Maintainer: Vincent Hanquez <vincent@snarc.org>
Synopsis: collection of crypto hashes, fast, pure and practical
Category: Data, Cryptography
Build-Type: Simple
Cabal-Version: >=1.6
Homepage: http://github.com/vincenthz/hs-cryptohash
data-files: README

extra-source-files:
  cbits/bitfn.h cbits/md2.h cbits/md4.h cbits/md5.h
  cbits/ripemd.h cbits/sha1.h cbits/sha256.h cbits/sha512.h
  cbits/skein.h cbits/skein256.h cbits/skein512.h
  cbits/tiger.h

Flag test
  Description: Build unit test
  Default: False

Flag cryptoapi
  Description: Defines crypto-api instances
  Default: True

Library
  Build-Depends: base >= 4, bytestring
  if flag(cryptoapi)
    Build-depends: crypto-api >= 0.1, tagged >= 0.1, cereal >= 0.2
    cpp-options: -DHAVE_CRYPTOAPI
  Extensions: ForeignFunctionInterface
  Exposed-modules: Crypto.Hash.SHA1
                     Crypto.Hash.SHA224
                     Crypto.Hash.SHA256
                     Crypto.Hash.SHA384
                     Crypto.Hash.SHA512
                     Crypto.Hash.MD2
                     Crypto.Hash.MD4
                     Crypto.Hash.MD5
                     Crypto.Hash.RIPEMD160
                     Crypto.Hash.Skein256
                     Crypto.Hash.Skein512
                     Crypto.Hash.Tiger
                     Data.CryptoHash.SHA1
                     Data.CryptoHash.SHA224
                     Data.CryptoHash.SHA256
                     Data.CryptoHash.SHA384
                     Data.CryptoHash.SHA512
                     Data.CryptoHash.MD2
                     Data.CryptoHash.MD4
                     Data.CryptoHash.MD5
                     Data.CryptoHash.RIPEMD160
                     Data.CryptoHash.Skein256
                     Data.CryptoHash.Skein512
                     Data.CryptoHash.Tiger
  ghc-options: -Wall -O2 -optc-O3 -fno-cse
  C-sources: cbits/sha1.c
                     cbits/sha256.c
                     cbits/sha512.c
                     cbits/md2.c
                     cbits/md4.c
                     cbits/md5.c
                     cbits/ripemd.c
                     cbits/skein256.c
                     cbits/skein512.c
                     cbits/tiger.c
  Include-Dirs: cbits

Executable Tests
  Main-Is: Tests.hs
  Extensions: ForeignFunctionInterface, CPP
  C-sources: cbits/sha1.c
                     cbits/sha256.c
                     cbits/sha512.c
                     cbits/md2.c
                     cbits/md4.c
                     cbits/md5.c
                     cbits/ripemd.c
                     cbits/skein256.c
                     cbits/skein512.c
                     cbits/tiger.c
  if flag(test)
    Buildable: True
    Build-depends: base >= 4, HUnit, bytestring
  else
    Buildable: False
  if flag(cryptoapi)
    Build-depends: crypto-api >= 0.1, tagged >= 0.1, cereal >= 0.2
    cpp-options: -DHAVE_CRYPTOAPI

source-repository head
  type: git
  location: git://github.com/vincenthz/hs-cryptohash
Something went wrong with that request. Please try again.