hmac-drbg

Pure Haskell HMAC-DRBG (docs.ppad.tech/hmac-drbg).
git clone git://git.ppad.tech/hmac-drbg.git
Log | Files | Refs | README | LICENSE

ppad-hmac-drbg.cabal (1708B)


      1 cabal-version:      3.0
      2 name:               ppad-hmac-drbg
      3 version:            0.2.1
      4 synopsis:           HMAC-based deterministic random bit generator
      5 license:            MIT
      6 license-file:       LICENSE
      7 author:             Jared Tobin
      8 maintainer:         jared@ppad.tech
      9 category:           Cryptography
     10 build-type:         Simple
     11 tested-with:        GHC == 9.10.3
     12 extra-doc-files:    CHANGELOG
     13 description:
     14   A pure implementation of the HMAC-DRBG CSPRNG, as specified by NIST-SP
     15   800-90A.
     16 
     17 flag llvm
     18   description: Use GHC's LLVM backend.
     19   default:     False
     20   manual:      True
     21 
     22 source-repository head
     23   type:     git
     24   location: git.ppad.tech/hmac-drbg.git
     25 
     26 library
     27   default-language: Haskell2010
     28   hs-source-dirs:   lib
     29   ghc-options:
     30       -Wall
     31   if flag(llvm)
     32     ghc-options: -fllvm -O2
     33   exposed-modules:
     34       Crypto.DRBG.HMAC
     35   build-depends:
     36       base >= 4.9 && < 5
     37     , bytestring >= 0.9 && < 0.13
     38     , primitive >= 0.8 && < 0.10
     39 
     40 test-suite hmac-drbg-tests
     41   type:                exitcode-stdio-1.0
     42   default-language:    Haskell2010
     43   hs-source-dirs:      test
     44   main-is:             Main.hs
     45 
     46   ghc-options:
     47     -rtsopts -Wall -O2
     48 
     49   build-depends:
     50       attoparsec
     51     , base
     52     , bytestring
     53     , ppad-base16
     54     , ppad-hmac-drbg
     55     , ppad-sha256 >= 0.3 && < 0.4
     56     , ppad-sha512 >= 0.2 && < 0.4
     57     , tasty
     58     , tasty-hunit
     59 
     60 benchmark hmac-drbg-bench
     61   type:                exitcode-stdio-1.0
     62   default-language:    Haskell2010
     63   hs-source-dirs:      bench
     64   main-is:             Main.hs
     65 
     66   ghc-options:
     67     -rtsopts -O2 -Wall
     68 
     69   build-depends:
     70       base
     71     , bytestring
     72     , criterion
     73     , ppad-hmac-drbg
     74     , ppad-sha256 >= 0.3 && < 0.4
     75     , ppad-sha512 >= 0.2 && < 0.4
     76