packages feed

crypto-api 0.12.2.1 → 0.12.2.2

raw patch · 4 files changed

+11/−5 lines, 4 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ Crypto.Classes: buildKeyGen :: (BlockCipher k, CryptoRandomGen g) => g -> Either GenError (k, g)
+ Crypto.Classes: buildKeyPairGen :: (CryptoRandomGen g, AsymCipher p v) => BitLength -> g -> Either GenError ((p, v), g)
+ Crypto.Classes: buildSigningKeyPairGen :: (Signing p v, CryptoRandomGen g) => BitLength -> g -> Either GenError ((p, v), g)
+ Crypto.Classes: buildStreamKeyGen :: (StreamCipher k iv, CryptoRandomGen g) => g -> Either GenError (k, g)

Files

Crypto/Classes.hs view
@@ -23,12 +23,16 @@         , blockSizeBytes         , keyLengthBytes         , buildKeyIO+        , buildKeyGen         , StreamCipher(..)         , buildStreamKeyIO+        , buildStreamKeyGen         , AsymCipher(..)         , buildKeyPairIO+        , buildKeyPairGen         , Signing(..)         , buildSigningKeyPairIO+        , buildSigningKeyPairGen         -- * Misc helper functions         , encode         , incIV
Crypto/Modes.hs view
@@ -541,10 +541,10 @@ {-# INLINEABLE getIVIO #-}  ivProxy :: Proxy k -> Proxy (IV k)-ivProxy = reproxy+ivProxy = const Proxy  deIVProxy :: Proxy (IV k) -> Proxy k-deIVProxy = reproxy+deIVProxy = const Proxy  proxyOf :: a -> Proxy a proxyOf = const Proxy
Crypto/Util.hs view
@@ -79,8 +79,10 @@ {-# INLINE bs2i #-}  -- |zipWith xor + Pack--- As a result of rewrite rules, this should automatically be optimized (at compile time).--- to use the bytestring libraries 'zipWith'' function.+-- As a result of rewrite rules, this should automatically be+-- optimized (at compile time). to use the bytestring libraries+-- 'zipWith'' function.+zwp' :: B.ByteString -> B.ByteString -> B.ByteString zwp' a = B.pack . B.zipWith xor a {-# INLINE zwp' #-} 
crypto-api.cabal view
@@ -1,5 +1,5 @@ name:           crypto-api-version:        0.12.2.1+version:        0.12.2.2 license:        BSD3 license-file:   LICENSE copyright:      Thomas DuBuisson <thomas.dubuisson@gmail.com>