hopenssl 1.6.2 → 1.7
raw patch · 2 files changed
+32/−13 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ OpenSSL.Digest: MDC2 :: MessageDigest
+ OpenSSL.Digest: SHA224 :: MessageDigest
+ OpenSSL.Digest: SHA256 :: MessageDigest
+ OpenSSL.Digest: SHA384 :: MessageDigest
+ OpenSSL.Digest: SHA512 :: MessageDigest
+ OpenSSL.Digest: mdMDC2 :: IO MDEngine
+ OpenSSL.Digest: mdSHA224 :: IO MDEngine
+ OpenSSL.Digest: mdSHA256 :: IO MDEngine
+ OpenSSL.Digest: mdSHA384 :: IO MDEngine
+ OpenSSL.Digest: mdSHA512 :: IO MDEngine
Files
- OpenSSL/Digest.hs +27/−7
- hopenssl.cabal +5/−6
OpenSSL/Digest.hs view
@@ -2,7 +2,7 @@ {- | Module : OpenSSL.Digest- Copyright : (c) 2010 by Peter Simons+ Copyright : (c) 2014 by Peter Simons License : BSD3 Maintainer : simons@cryp.to@@ -33,6 +33,11 @@ > DSS: 5bcaff7f22ff533ca099b3408ead876c0ebba9a7 > DSS1: 5bcaff7f22ff533ca099b3408ead876c0ebba9a7 > RIPEMD160: bdb2bba6ec93bd566dc1181cadbc92176aa78382+ > MDC2: 112db2200ce1e9db3c2d132aea4ef7d0+ > SHA224: 1ee0f9d93a873a67fe781852d716cb3e5904e015aafaa4d1ff1a81bc+ > SHA256: 41ef4bb0b23661e66301aac36066912dac037827b4ae63a7b1165a5aa93ed4eb+ > SHA384: ae2a5d6649035c00efe2bc1b5c97f4d5ff97fa2df06f273afa0231c425e8aff30e4cc1db5e5756e8d2245a1514ad1a2d+ > SHA512: 8470cdd3bf1ef85d5f092bce5ae5af97ce50820481bf43b2413807fec37e2785b533a65d4c7d71695b141d81ebcd4b6c4def4284e6067f0b400000001b230205 -} module OpenSSL.Digest where@@ -52,9 +57,14 @@ | MD5 -- ^ 128 bit | SHA -- ^ 160 bit | SHA1 -- ^ 160 bit- | DSS -- ^ 160 bit (SHA1)- | DSS1 -- ^ 160 bit (SHA1)+ | DSS -- ^ other name for SHA1+ | DSS1 -- ^ other name for SHA1 | RIPEMD160 -- ^ 160 bit+ | MDC2 -- ^ 128 bit+ | SHA224 -- ^ 224 bit+ | SHA256 -- ^ 256 bit+ | SHA384 -- ^ 384 bit+ | SHA512 -- ^ 512 bit deriving (Show, Eq, Enum, Bounded) -- |A convenience wrapper which computes the given digest@@ -183,13 +193,18 @@ -- ** Message Digest Engines -foreign import ccall unsafe "EVP_md_null" mdNull :: IO MDEngine-foreign import ccall unsafe "EVP_md5" mdMD5 :: IO MDEngine-foreign import ccall unsafe "EVP_sha" mdSHA :: IO MDEngine-foreign import ccall unsafe "EVP_sha1" mdSHA1 :: IO MDEngine foreign import ccall unsafe "EVP_dss" mdDSS :: IO MDEngine foreign import ccall unsafe "EVP_dss1" mdDSS1 :: IO MDEngine+foreign import ccall unsafe "EVP_md5" mdMD5 :: IO MDEngine+foreign import ccall unsafe "EVP_md_null" mdNull :: IO MDEngine+foreign import ccall unsafe "EVP_mdc2" mdMDC2 :: IO MDEngine foreign import ccall unsafe "EVP_ripemd160" mdRIPEMD160 :: IO MDEngine+foreign import ccall unsafe "EVP_sha" mdSHA :: IO MDEngine+foreign import ccall unsafe "EVP_sha1" mdSHA1 :: IO MDEngine+foreign import ccall unsafe "EVP_sha224" mdSHA224 :: IO MDEngine+foreign import ccall unsafe "EVP_sha256" mdSHA256 :: IO MDEngine+foreign import ccall unsafe "EVP_sha384" mdSHA384 :: IO MDEngine+foreign import ccall unsafe "EVP_sha512" mdSHA512 :: IO MDEngine -- |Map a 'MessageDigest' type into the the corresponding -- 'MDEngine'.@@ -202,6 +217,11 @@ toMDEngine DSS = mdDSS toMDEngine DSS1 = mdDSS1 toMDEngine RIPEMD160 = mdRIPEMD160+toMDEngine MDC2 = mdMDC2+toMDEngine SHA224 = mdSHA224+toMDEngine SHA256 = mdSHA256+toMDEngine SHA384 = mdSHA384+toMDEngine SHA512 = mdSHA512 -- * Helper Functions
hopenssl.cabal view
@@ -1,5 +1,5 @@ Name: hopenssl-Version: 1.6.2+Version: 1.7 Copyright: (c) 2004-2013 Peter Simons License: BSD3 License-File: LICENSE@@ -12,12 +12,12 @@ Synopsis: FFI bindings to OpenSSL's EVP digest interface Description: Foreign-function bindings to the OpenSSL library <http://www.openssl.org/>. Currently provides- access to the messages digests MD5, SHA, SHA1,- DSS, DSS1, and RIPEMD160 through the EVP digest- interface.+ access to the messages digests MD5, DSS, DSS1,+ RIPEMD160, and several variants of SHA through+ the EVP digest interface. Cabal-Version: >= 1.6 Build-Type: Simple-Tested-With: GHC >= 6.10.4 && <= 7.6.2+Tested-With: GHC >= 6.10.4 && <= 7.8.3 Source-Repository head Type: git@@ -29,4 +29,3 @@ Extra-Libraries: crypto Includes: "openssl/evp.h" Exposed-Modules: OpenSSL.Digest, OpenSSL.Digest.ByteString, OpenSSL.Digest.ByteString.Lazy- Ghc-Options: -Wall