crypton 1.1.3 → 1.1.4
raw patch · 3 files changed
+10/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Crypto.PubKey.RSA.Types: instance GHC.Generics.Generic Crypto.PubKey.RSA.Types.PrivateKey
+ Crypto.PubKey.RSA.Types: instance GHC.Generics.Generic Crypto.PubKey.RSA.Types.PublicKey
Files
- CHANGELOG.md +4/−0
- Crypto/PubKey/RSA/Types.hs +5/−2
- crypton.cabal +1/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ # CHANGELOG for crypton +## 1.1.4++* Generic instance for RSA PublicKey and PrivateKey+ ## 1.1.3 * Ensure that `pointAdd` in `PubKey.ECC.P256` treats the point at infinity as the additive identity.
Crypto/PubKey/RSA/Types.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} -- |@@ -23,6 +24,8 @@ import Crypto.Internal.Imports import Data.Data +import GHC.Generics+ -- | Blinder which is used to obfuscate the timing -- of the decryption primitive (used by decryption and signing). data Blinder = Blinder !Integer !Integer@@ -51,7 +54,7 @@ , public_e :: Integer -- ^ public exponent e }- deriving (Show, Read, Eq, Data)+ deriving (Show, Read, Eq, Data, Generic) instance NFData PublicKey where rnf (PublicKey sz n e) = rnf n `seq` rnf e `seq` sz `seq` ()@@ -81,7 +84,7 @@ , private_qinv :: Integer -- ^ q^(-1) mod p }- deriving (Show, Read, Eq, Data)+ deriving (Show, Read, Eq, Data, Generic) instance NFData PrivateKey where rnf (PrivateKey pub d p q dp dq qinv) =
crypton.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: crypton-version: 1.1.3+version: 1.1.4 license: BSD3 license-file: LICENSE copyright: Vincent Hanquez <vincent@snarc.org>