cipher-aes128 0.7.0.2 → 0.7.0.3
raw patch · 2 files changed
+1/−2 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Crypto.Cipher.AES128: blockSize :: Tagged * k BitLength
+ Crypto.Cipher.AES128: blockSize :: BlockCipher k => Tagged * k BitLength
- Crypto.Cipher.AES128: buildKey :: ByteString -> Maybe k
+ Crypto.Cipher.AES128: buildKey :: BlockCipher k => ByteString -> Maybe k
- Crypto.Cipher.AES128: cbc :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: cbc :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: cbcLazy :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: cbcLazy :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: cfb :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: cfb :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: cfbLazy :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: cfbLazy :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: ctr :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: ctr :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: ctrLazy :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: ctrLazy :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: decryptBlock :: k -> ByteString -> ByteString
+ Crypto.Cipher.AES128: decryptBlock :: BlockCipher k => k -> ByteString -> ByteString
- Crypto.Cipher.AES128: ecb :: k -> ByteString -> ByteString
+ Crypto.Cipher.AES128: ecb :: BlockCipher k => k -> ByteString -> ByteString
- Crypto.Cipher.AES128: ecbLazy :: k -> ByteString -> ByteString
+ Crypto.Cipher.AES128: ecbLazy :: BlockCipher k => k -> ByteString -> ByteString
- Crypto.Cipher.AES128: encryptBlock :: k -> ByteString -> ByteString
+ Crypto.Cipher.AES128: encryptBlock :: BlockCipher k => k -> ByteString -> ByteString
- Crypto.Cipher.AES128: keyLength :: Tagged * k BitLength
+ Crypto.Cipher.AES128: keyLength :: BlockCipher k => Tagged * k BitLength
- Crypto.Cipher.AES128: ofb :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: ofb :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: ofbLazy :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: ofbLazy :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: siv :: k -> k -> [ByteString] -> ByteString -> Maybe ByteString
+ Crypto.Cipher.AES128: siv :: BlockCipher k => k -> k -> [ByteString] -> ByteString -> Maybe ByteString
- Crypto.Cipher.AES128: sivLazy :: k -> k -> [ByteString] -> ByteString -> Maybe ByteString
+ Crypto.Cipher.AES128: sivLazy :: BlockCipher k => k -> k -> [ByteString] -> ByteString -> Maybe ByteString
- Crypto.Cipher.AES128: unCbc :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: unCbc :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: unCbcLazy :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: unCbcLazy :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: unCfb :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: unCfb :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: unCfbLazy :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: unCfbLazy :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: unCtr :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: unCtr :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: unCtrLazy :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: unCtrLazy :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: unEcb :: k -> ByteString -> ByteString
+ Crypto.Cipher.AES128: unEcb :: BlockCipher k => k -> ByteString -> ByteString
- Crypto.Cipher.AES128: unEcbLazy :: k -> ByteString -> ByteString
+ Crypto.Cipher.AES128: unEcbLazy :: BlockCipher k => k -> ByteString -> ByteString
- Crypto.Cipher.AES128: unOfb :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: unOfb :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: unOfbLazy :: k -> IV k -> ByteString -> (ByteString, IV k)
+ Crypto.Cipher.AES128: unOfbLazy :: BlockCipher k => k -> IV k -> ByteString -> (ByteString, IV k)
- Crypto.Cipher.AES128: unSiv :: k -> k -> [ByteString] -> ByteString -> Maybe ByteString
+ Crypto.Cipher.AES128: unSiv :: BlockCipher k => k -> k -> [ByteString] -> ByteString -> Maybe ByteString
- Crypto.Cipher.AES128: unSivLazy :: k -> k -> [ByteString] -> ByteString -> Maybe ByteString
+ Crypto.Cipher.AES128: unSivLazy :: BlockCipher k => k -> k -> [ByteString] -> ByteString -> Maybe ByteString
Files
- Benchmark/bench.hs +0/−1
- cipher-aes128.cabal +1/−1
Benchmark/bench.hs view
@@ -12,7 +12,6 @@ ivV = B.replicate 16 0 pt <- getEntropy (2^16) k <- buildKeyIO :: IO AES128.AESKey128- let kV = AES.initAES (B.pack [0..15]) defaultMain [ bench "aes-ecb cipher-aes128" $ nf (AES128.encryptBlock k) pt , bench "aes-ctr cipher-aes128" $ nf (fst . AES128.ctr k iv) pt
cipher-aes128.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: cipher-aes128-version: 0.7.0.2+version: 0.7.0.3 synopsis: AES and common modes using AES-NI when available. description: Cipher-aes128 is an implementation of AES and common modes of operation. It borrows Hanquez's C AES code (see 'cipher-aes') but is unique due to including compile-time detection of