[DES] fix compat that don't have an instance of Bits for Bool

This commit is contained in:
Vincent Hanquez 2015-04-11 08:44:28 +01:00
parent b08c7a223c
commit b76a2c135a

View File

@ -29,7 +29,7 @@ type Bits56 = [Bool]
type Bits64 = [Bool]
desXor :: [Bool] -> [Bool] -> [Bool]
desXor a b = zipWith xor a b
desXor a b = zipWith (/=) a b
desRotate :: [Bool] -> Int -> [Bool]
desRotate bits rot = drop rot' bits ++ take rot' bits