packages feed

ppad-sha256-0.2.2: ppad-sha256.cabal

cabal-version:      3.0
name:               ppad-sha256
version:            0.2.2
synopsis:           The SHA-256 and HMAC-SHA256 algorithms
license:            MIT
license-file:       LICENSE
author:             Jared Tobin
maintainer:         jared@ppad.tech
category:           Cryptography
build-type:         Simple
tested-with:        GHC == { 9.8.1, 9.6.6, 9.6.4 }
extra-doc-files:    CHANGELOG
description:
  A pure implementation of SHA-256 and HMAC-SHA256 on strict and lazy
  ByteStrings, as specified by RFC's 6234 and 2104.

source-repository head
  type:     git
  location: git.ppad.tech/sha256.git

library
  default-language: Haskell2010
  hs-source-dirs:   lib
  ghc-options:
      -Wall
  exposed-modules:
      Crypto.Hash.SHA256
  build-depends:
      base >= 4.9 && < 5
    , bytestring >= 0.9 && < 0.13

test-suite sha256-tests
  type:                exitcode-stdio-1.0
  default-language:    Haskell2010
  hs-source-dirs:      test
  main-is:             Main.hs
  other-modules:
    Wycheproof

  ghc-options:
    -rtsopts -Wall -O2

  build-depends:
      aeson
    , base
    , base16-bytestring
    , bytestring
    , ppad-sha256
    , tasty
    , tasty-hunit
    , text

benchmark sha256-bench
  type:                exitcode-stdio-1.0
  default-language:    Haskell2010
  hs-source-dirs:      bench
  main-is:             Main.hs

  ghc-options:
    -rtsopts -O2 -Wall

  build-depends:
      base
    , bytestring
    , criterion
    , ppad-sha256
    , SHA