{ mkDerivation, attoparsec, base, base64-bytestring, byteable
-, bytestring, cereal, cipher-aes, cryptohash, deepseq, hex
-, QuickCheck, stdenv, tasty, tasty-hunit, tasty-quickcheck
+, bytestring, cereal, cryptohash, deepseq, hex, QuickCheck, stdenv
+, tasty, tasty-hunit, tasty-quickcheck
}:
mkDerivation {
pname = "hmacaroons";
src = ./.;
buildDepends = [
attoparsec base base64-bytestring byteable bytestring cereal
- cipher-aes cryptohash deepseq hex
+ cryptohash deepseq hex
];
testDepends = [
attoparsec base base64-bytestring byteable bytestring cereal
byteable >= 0.1 && <0.2,
cereal >= 0.4,
cryptohash >=0.11 && <0.12,
- cipher-aes >=0.2 && <0.3,
+ -- cipher-aes >=0.2 && <0.3,
deepseq >= 1.1,
hex >= 0.1
hs-source-dirs: src
default-language: Haskell2010
-
+
benchmark bench
default-language: Haskell2010
type: exitcode-stdio-1.0
byteable >= 0.1 && <0.2,
cereal >= 0.4,
cryptohash >=0.11 && <0.12,
- cipher-aes >=0.2 && <0.3,
+ -- cipher-aes >=0.2 && <0.3,
hex >= 0.1,
deepseq >= 1.1,
criterion >= 1.1
-- , addThirdPartyCaveat
) where
-import Crypto.Cipher.AES
+-- import Crypto.Cipher.AES
import Crypto.Hash
import Data.Byteable
import qualified Data.ByteString as BS
-- |Add a third party Caveat to a Macaroon, using its location, identifier and
-- verification key
-addThirdPartyCaveat :: Key
- -> Key
- -> Location
- -> Macaroon
- -> Macaroon
-addThirdPartyCaveat key cid loc m = addCaveat loc cid vid m
- where
- vid = encryptECB (initAES (signature m)) key
+-- addThirdPartyCaveat :: Key
+-- -> Key
+-- -> Location
+-- -> Macaroon
+-- -> Macaroon
+-- addThirdPartyCaveat key cid loc m = addCaveat loc cid vid m
+-- where
+-- vid = encryptECB (initAES (signature m)) key
import Control.DeepSeq
-import Crypto.Cipher.AES
import Crypto.Hash
import Data.Byteable
import qualified Data.ByteString as BS