openpgp-crypto-api 0.3 → 0.4
raw patch · 3 files changed
+9/−9 lines, 3 filesdep ~cryptocipher
Dependency ranges changed: cryptocipher
Files
- Data/OpenPGP/CryptoAPI.hs +4/−4
- README +1/−1
- openpgp-crypto-api.cabal +4/−4
Data/OpenPGP/CryptoAPI.hs view
@@ -6,7 +6,7 @@ import Data.Bits import Data.List (find) import Data.Binary-import Crypto.Classes hiding (hash,sign,verify)+import Crypto.Classes hiding (hash,sign,verify,encode) import Crypto.Random (CryptoRandomGen) import Crypto.Hash.MD5 (MD5) import Crypto.Hash.SHA1 (SHA1)@@ -15,7 +15,7 @@ import Crypto.Hash.SHA384 (SHA384) import Crypto.Hash.SHA512 (SHA512) import Crypto.Hash.SHA224 (SHA224)-import qualified Data.Serialize as Serialize (encode)+import qualified Crypto.Classes as Serialize (encode) import qualified Crypto.Cipher.RSA as RSA import qualified Crypto.Cipher.DSA as DSA import qualified Data.ByteString as BS@@ -93,7 +93,7 @@ privateRSAkey :: OpenPGP.Packet -> RSA.PrivateKey privateRSAkey k = -- Invert p and q because u is pinv not qinv- RSA.PrivateKey (integerBytesize n) n d q p+ RSA.PrivateKey pubkey d q p (d `mod` (q-1)) (d `mod` (p-1)) (keyParam 'u' k)@@ -101,7 +101,7 @@ d = keyParam 'd' k p = keyParam 'p' k q = keyParam 'q' k- n = keyParam 'n' k+ pubkey = rsaKey k rsaKey :: OpenPGP.Packet -> RSA.PublicKey rsaKey k =
README view
@@ -2,7 +2,7 @@ and related libraries that currently does fingerprint generation, signature generation, and signature verification (for RSA and DSA keys). -It is indended to be used with <http://hackage.haskell.org/openpgp>+It is indended to be used with <http://hackage.haskell.org/package/openpgp> It is intended that you use qualified imports with this library.
openpgp-crypto-api.cabal view
@@ -1,5 +1,5 @@ name: openpgp-crypto-api-version: 0.3+version: 0.4 cabal-version: >= 1.8 license: OtherLicense license-file: COPYING@@ -18,7 +18,7 @@ and related libraries that currently does fingerprint generation, signature generation, and signature verification (for RSA and DSA keys). .- It is indended to be used with <http://hackage.haskell.org/openpgp>+ It is indended to be used with <http://hackage.haskell.org/package/openpgp> . It is intended that you use qualified imports with this library. .@@ -49,7 +49,7 @@ binary, openpgp, crypto-api,- cryptocipher,+ cryptocipher >= 0.3.7, cryptohash, cereal @@ -64,7 +64,7 @@ binary, openpgp, crypto-api >= 0.9,- cryptocipher,+ cryptocipher >= 0.3.7, cryptohash, HUnit, QuickCheck >= 2.4.1.1,