[DES] fix compat that don't have an instance of Bits for Bool
This commit is contained in:
parent
b08c7a223c
commit
b76a2c135a
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user