packages feed

GOST34112012-Hash-0.1.1.2: GOST34112012-Hash.cabal

cabal-version:          3.0
name:                   GOST34112012-Hash
version:                0.1.1.2
synopsis:               Bindings to the GOST R 34.11-2012 hashing implementation
description:            Binds https://github.com/adegtyarev/streebog, a C
                        implementation of the GOST R 34.11-2012 hash function.
                        See c_src/streebog/README.md and test/Main.hs for examples.
                        Requires a x86 processor that supports MSSE4.1!
homepage:               https://github.com/verrens/GOST34112012-Hash
license:                BSD-2-Clause
license-file:           LICENSE
                        c_src/streebog/LICENSE
                        c_src/streebog/LICENSE.GPL2
extra-doc-files:        c_src/streebog/README.md
                        c_src/streebog/Changelog
                        c_src/streebog/VERSION
extra-source-files:     test/etalon/*.src
                        test/etalon/*.256
                        test/etalon/*.512
                        test/etalon/make4Gb.sh
author:                 Alexey Degtyarev <alexey@renatasystems.org>,
                        Denis Afonin <verrens@yandex.ru>
maintainer:             verrens@yandex.ru
category:               Cryptography, Codec
build-type:             Simple

common warnings
    ghc-options:        -Wall

library
    import:             warnings
    exposed-modules:    Crypto.Hash.GOST34112012
    build-depends:      base >= 4 && < 5,
                        bytestring >= 0.11.5 && < 0.12
    hs-source-dirs:     src
    default-language:   Haskell2010
    include-dirs:       c_src, c_src/streebog
    includes:           c_src/streebog/gost3411-2012-core.h
    install-includes:   c_src/streebog/gost3411-2012-core.h
                        c_src/streebog/gost3411-2012-const.h
                        c_src/streebog/gost3411-2012-core.h
                        c_src/streebog/gost3411-2012-mmx.h
                        c_src/streebog/gost3411-2012-precalc.h
                        c_src/streebog/gost3411-2012-ref.h
                        c_src/streebog/gost3411-2012-sse2.h
                        c_src/streebog/gost3411-2012-sse41.h
                        c_src/gost3411-2012-config.h
    c-sources:          c_src/streebog/gost3411-2012-core.c
    ghc-options:        -optc-msse4.1
                        -optc-msse2
                        -optc-mmmx

test-suite test
    import:             warnings
    default-language:   Haskell2010
    type:               exitcode-stdio-1.0
    hs-source-dirs:     test
    main-is:            Main.hs
    build-depends:      base >= 4 && < 5,
                        GOST34112012-Hash,
                        bytestring >= 0.11.5 && < 0.12,
                        utf8-string >= 1.0.2 && < 1.1,
                        text >= 2.0.2 && < 2.1

source-repository head
  type:                 git
  location:             https://github.com/verrens/GOST34112012-Hash