diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-02-04 13:41:26 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-02-04 13:41:26 -0400 |
commit | bc4016065f00af1b77c6fa1dedb5c4c22158b9d8 (patch) | |
tree | 18d9f2605a982a1eafc515b807defa76a70b2ad4 /Backend/Hash.hs | |
parent | 30d3a45c5ad9601d538e936fe3dbe19c54465ff5 (diff) |
Remove support for building without cryptohash.
This will prevent backporting to wheezy, but it's time to simplify the
code.
Diffstat (limited to 'Backend/Hash.hs')
-rw-r--r-- | Backend/Hash.hs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Backend/Hash.hs b/Backend/Hash.hs index 82763a9be..6c240638f 100644 --- a/Backend/Hash.hs +++ b/Backend/Hash.hs @@ -32,9 +32,7 @@ type HashSize = Int hashes :: [Hash] hashes = concat [ map SHAHash [256, 1, 512, 224, 384] -#ifdef WITH_CRYPTOHASH , map SkeinHash [256, 512] -#endif ] {- The SHA256E backend is the default, so genBackendE comes first. -} @@ -178,10 +176,8 @@ shaHasher hashsize filesize skeinHasher :: HashSize -> (L.ByteString -> String) skeinHasher hashsize -#ifdef WITH_CRYPTOHASH | hashsize == 256 = show . skein256 | hashsize == 512 = show . skein512 -#endif | otherwise = error $ "unsupported skein size " ++ show hashsize {- A varient of the SHA256E backend, for testing that needs special keys |