cryptonite-openssl 0.6 → 0.7
raw patch · 5 files changed
+12/−67 lines, 5 filesdep +basementdep ~basePVP ok
version bump matches the API change (PVP)
Dependencies added: basement
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- Crypto/OpenSSL/AES/Foreign.hsc +2/−0
- Crypto/OpenSSL/Misc.hs +2/−1
- LICENSE +1/−1
- README.md +0/−60
- cryptonite-openssl.cabal +7/−5
Crypto/OpenSSL/AES/Foreign.hsc view
@@ -60,8 +60,10 @@ ssl_c_cipher_ctx_new :: IO (Ptr EVP_CIPHER_CTX) #endif +#ifndef OPENSSL_HAS_OPAQUE_EVP_CIPHER_CTX foreign import ccall unsafe "EVP_CIPHER_CTX_init" ssl_c_cipher_ctx_init :: Ptr EVP_CIPHER_CTX -> IO ()+#endif foreign import ccall unsafe "&EVP_CIPHER_CTX_free" ssl_c_cipher_ctx_free :: FunPtr (Ptr EVP_CIPHER_CTX -> IO ())
Crypto/OpenSSL/Misc.hs view
@@ -11,6 +11,7 @@ import Data.Typeable import Foreign.C.Types (CInt) import System.IO.Unsafe (unsafePerformIO)+import Basement.Compat.CallStack data OpenSSLError = OpenSSLError Int deriving (Show,Read,Eq,Typeable)@@ -22,7 +23,7 @@ instance Exception OpenSSLGcmError -check :: IO CInt -> IO ()+check :: HasCallStack => IO CInt -> IO () check f = do r <- f if r == 0
LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2015-2016 Vincent Hanquez <vincent@snarc.org>+Copyright (c) 2015-2018 Vincent Hanquez <vincent@snarc.org> Copyright (c) 2013-2015 PivotCloud, Inc. All rights reserved.
− README.md
@@ -1,60 +0,0 @@-cryptonite-openssl-==================--[](https://travis-ci.org/vincenthz/cryptonite-openssl)-[](http://en.wikipedia.org/wiki/BSD_licenses)-[](http://haskell.org)--Support for OpenSSL based crypto operations in Haskell, as a bolt-in to [cryptonite](http://hackage.haskell.org/package/cryptonite)--If you have no idea what're you doing, please do not use this directly, rely on-higher level protocols or higher level implementation.--Documentation: [cryptonite-openssl on hackage](http://hackage.haskell.org/package/cryptonite-openssl)--Support----------cryptonite-openssl supports the following platform:--* Windows >= 7-* OSX >= 10.8-* Linux--On the following architectures:--* x86-64-* i386--On the following haskell versions:--* GHC 7.0.x-* GHC 7.4.x-* GHC 7.6.x-* GHC 7.8.x-* GHC 7.10.x--Further platforms and architectures probably works too, but until maintainer(s) don't have regular-access to them, we can't commit for further support--Building on MacOS X----------------------* using openssl system library-* using alternative installation--Building on windows----------------------You need the C++ runtime :--* http://www.microsoft.com/downloads/details.aspx?familyid=bd2a6171-e2d6-4230-b809-9a8d7548c1b6--And the right installation of OpenSSL. Some binary installations are available here:--* https://slproweb.com/products/Win32OpenSSL.html--Building with alternative OpenSSL - BoringSSL, LibreSSL----------------------------------------------------------TODO
cryptonite-openssl.cabal view
@@ -1,7 +1,7 @@ Name: cryptonite-openssl-Version: 0.6+Version: 0.7 Synopsis: Crypto stuff using OpenSSL cryptographic library-Description: cryptography+Description: Crypto stuff using the OpenSSL cryptographic library as bindings License: BSD3 License-file: LICENSE Copyright: Vincent Hanquez <vincent@snarc.org>@@ -13,13 +13,14 @@ Homepage: https://github.com/haskell-crypto/cryptonite-openssl Bug-reports: https://github.com/haskell-crypto/cryptonite-openssl/issues Cabal-Version: >=1.10-extra-doc-files: README.md source-repository head type: git location: https://github.com/haskell-crypto/cryptonite-openssl Library+ if impl(ghc < 8.0)+ buildable: False Exposed-modules: Crypto.OpenSSL Crypto.OpenSSL.ECC Crypto.OpenSSL.BN@@ -30,8 +31,9 @@ , Crypto.OpenSSL.AES.Foreign , Crypto.OpenSSL.Misc , Crypto.OpenSSL.ASN1- Build-depends: base >= 4.3 && < 5+ Build-depends: base , bytestring+ , basement , memory , cryptonite ghc-options: -Wall -fwarn-tabs -optc-O3@@ -55,7 +57,7 @@ hs-source-dirs: tests Main-is: Tests.hs Other-modules: Imports- Build-Depends: base >= 3 && < 5+ Build-Depends: base , bytestring , tasty , tasty-quickcheck