debian/0000755000000000000000000000000012151073142007162 5ustar debian/watch0000644000000000000000000000033012036247433010217 0ustar version=3 opts="downloadurlmangle=s|archive/([\w\d_-]+)/([\d\.]+)/|archive/$1/$2/$1-$2.tar.gz|,\ filenamemangle=s|(.*)/$|Crypto-$1.tar.gz|" \ http://hackage.haskell.org/packages/archive/Crypto \ ([\d\.]*\d)/ debian/rules0000755000000000000000000000015512036247433010253 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/hlibrary.mk debian/copyright0000644000000000000000000000705212036247432011130 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: Crypto Maintainer: Joachim Breitner Source: http://hackage.haskell.org/package/Crypto Various parts of the package are coverend by various copyrights and licenses: Codec.Binary.BubbleBabble: © 2008, John Meacham, BSD Codec.Text.Raw: © 2006, Dominic Steinitz, BSD Codec.Encryption.AES: © 2003, Dominic Steinitz, Lukasz Anforowicz, BSD Codec.Encryption.AESAux: © 2005, Dominic Steinitz, BSD Codec.Encryption.Blowfish: © 2003, Dominic Steinitz, BSD Codec.Encryption.BlowfishAux: © 2002, HardCore SoftWare, Doug Hoyte, BSD Codec.Encryption.TEA: © 2008, John Meacham, BSD Codec.Encryption.DES: © 2003,2005, Dominic Steinitz, BSD Codec.Encryption.DESAux: © 2005, Ian Lynagh, BSD Codec.Encryption.Modes: © 2001-2003,2005, Dominic Steinitz, BSD Codec.Encryption.Padding: © 2003,2005, Dominic Steinitz, BSD Codec.Encryption.RSA: © 2003,2005, Dominic Steinitz, David Sankel, GPL Codec.Encryption.RSA.EMEOAEP: © 2003,2005, Dominic Steinitz, David Sankel, GPL Codec.Encryption.RSA.MGF: © 2003,2005, Dominic Steinitz, BSD Codec.Encryption.RSA.NumberTheory: © 2001,2002,2003,2005, David Sankel, GPL Codec.Utils: © 2003,2005, Dominic Steinitz, BSD Data.Digest.MD5: © 2004,2005, Dominic Steinitz, BSD Data.Digest.MD5Aux: © 2005, Ian Lynagh, BSD Data.Digest.SHA1: © 2005,2007, Dominic Steinitz, BSD Data.Digest.SHA2: © 2006, Russell O'Connor, BSD Data.Digest.SHA224: © 2006, Russell O'Connor, BSD Data.Digest.SHA256: © 2006, Russell O'Connor, BSD Data.Digest.SHA384: © 2006, Russell O'Connor, BSD Data.Digest.SHA512: © 2006, Russell O'Connor, BSD Data.HMAC: © 2007, Greg Heartsfield, BSD Data.LargeWord: © 2004,2005, Dominic Steinitz, BSD RSATest: © 2005, Dominic Steinitz, BSD QuickTest: © 2005, Dominic Steinitz, BSD SymmetricTest: © 2005, Dominic Steinitz, BSD Where BSD refers to the license: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission. This software is provided by the copyright holders and contributors ``AS IS'' and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright onwers or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage. And GPL refers to: The GNU General Public License (GPL), version 2 or (at your option) any later version. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2' debian/source/0000755000000000000000000000000012036247433010472 5ustar debian/source/format0000644000000000000000000000001412036247433011700 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012040765173010622 5ustar debian/patches/class-constraints.diff0000644000000000000000000000634012040765173015131 0ustar Description: ghc 7.6 class constraints Author: Joachim Breitner Index: haskell-crypto-4.2.5/Data/Digest/SHA2.hs =================================================================== --- haskell-crypto-4.2.5.orig/Data/Digest/SHA2.hs 2012-05-14 13:58:24.000000000 +0200 +++ haskell-crypto-4.2.5/Data/Digest/SHA2.hs 2012-10-21 14:21:17.359966255 +0200 @@ -25,7 +25,7 @@ ch x y z = (x .&. y) `xor` (complement x .&. z) maj x y z = (x .&. y) `xor` (x .&. z) `xor` (y .&. z) -class (Bits w) => ShaData w where +class (Bits w, Num w) => ShaData w where bigSigma0 :: w -> w bigSigma1 :: w -> w smallSigma0 :: w -> w Index: haskell-crypto-4.2.5/Data/LargeWord.hs =================================================================== --- haskell-crypto-4.2.5.orig/Data/LargeWord.hs 2012-05-14 13:58:24.000000000 +0200 +++ haskell-crypto-4.2.5/Data/LargeWord.hs 2012-10-21 14:25:31.855955472 +0200 @@ -62,7 +62,7 @@ data LargeKey a b = LargeKey a b deriving (Eq, Ord) -instance (Ord a, Bits a, LargeWord a, Bits b, LargeWord b) => +instance (Ord a, Bits a, Num a, LargeWord a, Bits b, Num b, LargeWord b) => LargeWord (LargeKey a b) where largeWordToInteger (LargeKey lo hi) = largeWordToInteger lo + (2^(bitSize lo)) * largeWordToInteger hi @@ -96,17 +96,17 @@ where conv = integerToLargeWord . largeWordToInteger largeBitSize ~(LargeKey lo hi) = largeBitSize lo + largeBitSize hi -instance (Ord a, Bits a, LargeWord a, Bits b, LargeWord b) => Show (LargeKey a b) where +instance (Ord a, Bits a, Num a, LargeWord a, Bits b, Num b, LargeWord b) => Show (LargeKey a b) where showsPrec p = showInt . largeWordToInteger -instance (Ord a, Bits a, LargeWord a, Bits b, LargeWord b) => +instance (Ord a, Bits a, Num a, LargeWord a, Bits b, Num b, LargeWord b) => Num (LargeKey a b) where (+) = largeWordPlus fromInteger = integerToLargeWord -- Larger keys are instances of Bits provided their constituents are keys. -instance (Ord a, Bits a, LargeWord a, Bits b, LargeWord b) => +instance (Ord a, Bits a, Num a, LargeWord a, Bits b, Num b, LargeWord b) => Bits (LargeKey a b) where (.&.) = largeWordAnd (.|.) = largeWordOr @@ -130,11 +130,11 @@ boflk :: (LargeKey a b) -> b boflk = undefined -instance (Ord a, Bits a, LargeWord a, Ord b, Bits b, LargeWord b) => +instance (Ord a, Bits a, Num a, LargeWord a, Ord b, Bits b, Num b, LargeWord b) => Integral (LargeKey a b) where toInteger = largeWordToInteger -instance (Ord a, Bits a, LargeWord a, Ord b, Bits b, LargeWord b) => +instance (Ord a, Bits a, Num a, LargeWord a, Ord b, Bits b, Num b, LargeWord b) => Real (LargeKey a b) instance Enum (LargeKey a b) Index: haskell-crypto-4.2.5/Data/Digest/SHA1.hs =================================================================== --- haskell-crypto-4.2.5.orig/Data/Digest/SHA1.hs 2012-05-14 13:58:24.000000000 +0200 +++ haskell-crypto-4.2.5/Data/Digest/SHA1.hs 2012-10-21 14:26:57.551951840 +0200 @@ -93,7 +93,7 @@ g [] = Nothing g xs = Just (splitAt 64 xs) -fromBytes :: (Bits a) => [a] -> a +fromBytes :: (Bits a, Num a) => [a] -> a fromBytes input = let dofb accum [] = accum dofb accum (x:xs) = dofb ((shiftL accum 8) .|. x) xs debian/patches/series0000644000000000000000000000005312040344514012025 0ustar class-constraints.diff no-quickcheck.patch debian/patches/no-quickcheck.patch0000644000000000000000000000413012036247433014364 0ustar diff -ur old/haskell-crypto-4.2.3/Crypto.cabal haskell-crypto-4.2.3/Crypto.cabal --- old/haskell-crypto-4.2.3/Crypto.cabal 2010-12-27 21:14:30.000000000 -0400 +++ haskell-crypto-4.2.3/Crypto.cabal 2011-04-25 17:48:48.737535576 -0400 @@ -46,7 +46,7 @@ Data.Digest.SHA512, Data.LargeWord, Data.HMAC - Build-Depends: QuickCheck >= 2.4.0.1, HUnit + Build-Depends: HUnit if flag(small_base) Build-Depends: base >= 3, base < 5, array, random, pretty else @@ -58,49 +58,3 @@ Codec.Encryption.DESAux, Codec.Encryption.AESAux, Data.Digest.MD5Aux - -Executable SymmetricTest - Main-Is: SymmetricTest.hs - Ghc-options: -fregs-graph - Other-modules: Codec.Utils - Codec.Encryption.Blowfish - Codec.Encryption.Modes - Codec.Encryption.Padding - Codec.Encryption.DES - Codec.Encryption.AES - Data.LargeWord - -Executable SHA1Test - Main-Is: SHA1Test.hs - Ghc-options: -fregs-graph - Other-modules: Codec.Text.Raw - Data.Digest.SHA1 - -Executable RSATest - Main-Is: RSATest.hs - Ghc-options: -fregs-graph - Other-modules: Codec.Utils - Data.Digest.SHA1 - Codec.Encryption.RSA.MGF - Codec.Encryption.RSA.EMEOAEP - Codec.Encryption.RSA - -Executable QuickTest - Main-Is: QuickTest.hs - Ghc-options: -fregs-graph - Extensions: TypeSynonymInstances - Other-modules: Codec.Utils - Codec.Encryption.Blowfish - Codec.Encryption.AES - Codec.Encryption.Modes - Codec.Encryption.Padding - Data.LargeWord - -Executable HMACTest - Main-Is: HMACTest.hs - Other-modules: Codec.Utils - Data.HMAC - -Executable WordListTest - Main-Is: WordListTest.hs - Other-modules: Data.LargeWord debian/compat0000644000000000000000000000000212147616142010370 0ustar 9 debian/control0000644000000000000000000000452612150230103010563 0ustar Source: haskell-crypto Section: haskell Priority: extra Maintainer: Debian Haskell Group Uploaders: Joachim Breitner Build-Depends: debhelper (>= 9) , cdbs , haskell-devscripts (>= 0.8.15) , ghc , ghc-prof , libghc-hunit-dev , libghc-hunit-prof , libghc-random-dev , libghc-random-prof Build-Depends-Indep: ghc-doc , libghc-hunit-doc , libghc-random-doc Standards-Version: 3.9.4 Homepage: http://hackage.haskell.org/package/Crypto Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-crypto Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-crypto Package: libghc-crypto-dev Architecture: any Depends: ${haskell:Depends} , ${shlibs:Depends} , ${misc:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Provides: ${haskell:Provides} Description: cryptographical algorithms for Haskell${haskell:ShortBlurb} This package contains the following cryptographical algorithms: * DES * Blowfish * AES * TEA * SHA1 * MD5 * RSA * BubbleBabble * Hexdump * Support for Word128, Word192 and Word256 and Beyond * PKCS5 * Padding * Various Encryption Modes e.g. Cipher Block Chaining . ${haskell:Blurb} Package: libghc-crypto-prof Architecture: any Depends: ${haskell:Depends} , ${misc:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Provides: ${haskell:Provides} Description: cryptographical algorithms for Haskell${haskell:ShortBlurb} This package contains the following cryptographical algorithms: * DES * Blowfish * AES * TEA * SHA1 * MD5 * RSA * BubbleBabble * Hexdump * Support for Word128, Word192 and Word256 and Beyond * PKCS5 * Padding * Various Encryption Modes e.g. Cipher Block Chaining . ${haskell:Blurb} Package: libghc-crypto-doc Section: doc Architecture: all Depends: ${misc:Depends}, ${haskell:Depends} Recommends: ${haskell:Recommends} Suggests: ${haskell:Suggests} Description: cryptographical algorithms for Haskell${haskell:ShortBlurb} This package contains the following cryptographical algorithms: * DES * Blowfish * AES * TEA * SHA1 * MD5 * RSA * BubbleBabble * Hexdump * Support for Word128, Word192 and Word256 and Beyond * PKCS5 * Padding * Various Encryption Modes e.g. Cipher Block Chaining . ${haskell:Blurb} debian/changelog0000644000000000000000000000273112151073142011037 0ustar haskell-crypto (4.2.5-3build1) saucy; urgency=low * Rebuild for new GHC ABIs. -- Colin Watson Tue, 28 May 2013 10:18:26 +0100 haskell-crypto (4.2.5-3) unstable; urgency=low * Move Haskell blurb to the end of the description, reduces the impact of #708703 -- Joachim Breitner Sat, 25 May 2013 23:52:07 +0200 haskell-crypto (4.2.5-2) unstable; urgency=low * Enable compat level 9 * Use substvars for Haskell description blurbs -- Joachim Breitner Fri, 24 May 2013 12:50:15 +0200 haskell-crypto (4.2.5-1) experimental; urgency=low * Depend on haskell-devscripts 0.8.13 to ensure this packages is built against experimental * Bump standards version, no change * New upstream release + patches/class-constraints.diff: Bits no longer imply Num -- Joachim Breitner Sun, 21 Oct 2012 14:29:03 +0200 haskell-crypto (4.2.4-1) unstable; urgency=low * New upstream version. * Bump to Standards-Version 3.9.2. * Add missing class constraints. -- Clint Adams Sun, 12 Feb 2012 22:25:32 -0500 haskell-crypto (4.2.3-2) unstable; urgency=low * Disable quickcheck, thanks to joey for the patch. (Closes: #624140) -- Joachim Breitner Tue, 26 Apr 2011 22:38:24 +0530 haskell-crypto (4.2.3-1) unstable; urgency=low * Initial release. (Closes: #623188) -- Joachim Breitner Mon, 18 Apr 2011 14:20:20 +0530