packages feed

clientsession 0.9.2.0 → 0.9.3.0

raw patch · 3 files changed

+13/−7 lines, 3 filesdep +cryptondep −cryptonitePVP ok

version bump matches the API change (PVP)

Dependencies added: crypton

Dependencies removed: cryptonite

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ # ChangeLog for clientsession +## 0.9.3.0++* Migrate to crypton from cryptonite.+ ## 0.9.2.0  * Migrate crypto-aes and cprng-aes to cryptonite. [#36](https://github.com/yesodweb/clientsession/pull/36)
clientsession.cabal view
@@ -1,5 +1,5 @@ name:            clientsession-version:         0.9.2.0+version:         0.9.3.0 license:         MIT license-file:    LICENSE author:          Michael Snoyman <michael@snoyman.com>, Felipe Lessa <felipe.lessa@gmail.com>@@ -29,7 +29,9 @@  library     default-language: Haskell2010-    build-depends:   base                >=4           && < 5+    build-depends:   base                >= 4.8          && < 5+                       -- https://github.com/yesodweb/clientsession/commit/1221230770feff60f77ff676d52fc464cb77b2d9#r122087962+                       -- Data.Bifunctor entered base in 4.8                    , bytestring          >= 0.9                    , cereal              >= 0.3                    , directory           >= 1@@ -38,7 +40,7 @@                    , skein               == 1.0.*                    , base64-bytestring   >= 0.1.1.1                    , entropy             >= 0.2.1-                   , cryptonite          >= 0.15+                   , crypton             >= 1.0                    , setenv     exposed-modules: Web.ClientSession     other-modules:   System.LookupEnv@@ -64,4 +66,4 @@  source-repository head   type:     git-  location: git://github.com/yesodweb/clientsession.git+  location: https://github.com/yesodweb/clientsession.git
src/Web/ClientSession.hs view
@@ -95,11 +95,11 @@ -- from crypto-api import Crypto.Classes (constTimeEq) --- from cryptonite+-- from crypton import qualified Crypto.Cipher.AES as A import Crypto.Cipher.Types(Cipher(..),BlockCipher(..),makeIV) import Crypto.Error (eitherCryptoError)-import "cryptonite" Crypto.Random (ChaChaDRG,drgNew,randomBytesGenerate)+import "crypton" Crypto.Random (ChaChaDRG,drgNew,randomBytesGenerate)  -- from skein import Crypto.Skein (skeinMAC', Skein_512_256)@@ -311,7 +311,7 @@ -- Crypto.Modes.getIVIO, since it does not require /dev/urandom -- I/O for every call. --- [now with cryptonite.ChaChaDRG]+-- [now with crypton.ChaChaDRG] -- I haven't run any benchmark; this conversion is a case of “code -- that doesn't crash trumps performance.”