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 (2011B)


      1 cabal-version:      3.0
      2 name:               ppad-hmac-drbg
      3 version:            0.3.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.Internal
     35     , Crypto.DRBG.HMAC.SHA256
     36     , Crypto.DRBG.HMAC.SHA512
     37   build-depends:
     38       base >= 4.9 && < 5
     39     , bytestring >= 0.9 && < 0.13
     40     , ppad-sha256 >= 0.3.2 && < 0.4
     41     , ppad-sha512 >= 0.2.2 && < 0.4
     42     , primitive >= 0.8 && < 0.10
     43 
     44 test-suite hmac-drbg-tests
     45   type:                exitcode-stdio-1.0
     46   default-language:    Haskell2010
     47   hs-source-dirs:      test
     48   main-is:             Main.hs
     49 
     50   ghc-options:
     51     -rtsopts -Wall -O2
     52 
     53   build-depends:
     54       attoparsec
     55     , base
     56     , bytestring
     57     , ppad-base16
     58     , ppad-hmac-drbg
     59     , tasty
     60     , tasty-hunit
     61 
     62 benchmark hmac-drbg-bench
     63   type:                exitcode-stdio-1.0
     64   default-language:    Haskell2010
     65   hs-source-dirs:      bench
     66   main-is:             Main.hs
     67 
     68   ghc-options:
     69     -rtsopts -O2 -Wall
     70 
     71   build-depends:
     72       base
     73     , bytestring
     74     , criterion
     75     , ppad-hmac-drbg
     76 
     77 benchmark hmac-drbg-weigh
     78   type:                exitcode-stdio-1.0
     79   default-language:    Haskell2010
     80   hs-source-dirs:      bench
     81   main-is:             Weight.hs
     82 
     83   ghc-options:
     84     -rtsopts -O2 -Wall
     85 
     86   build-depends:
     87       base
     88     , bytestring
     89     , deepseq
     90     , ppad-hmac-drbg
     91     , weigh
     92