This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DEVOPS-393] Fix segfault in cryptonite
See upstream issue at haskell-crypto/cryptonite#193
- Loading branch information
1 parent
dd2dd10
commit 9f61525
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/Crypto/Hash/Blake2b.hs b/Crypto/Hash/Blake2b.hs | ||
index c22c284..19c68ba 100644 | ||
--- a/Crypto/Hash/Blake2b.hs | ||
+++ b/Crypto/Hash/Blake2b.hs | ||
@@ -85,7 +85,7 @@ instance HashAlgorithm Blake2b_512 where | ||
foreign import ccall unsafe "cryptonite_blake2b_init" | ||
c_blake2b_init :: Ptr (Context a) -> Word32 -> IO () | ||
|
||
-foreign import ccall "cryptonite_blake2b_update" | ||
+foreign import ccall unsafe "cryptonite_blake2b_update" | ||
c_blake2b_update :: Ptr (Context a) -> Ptr Word8 -> Word32 -> IO () | ||
|
||
foreign import ccall unsafe "cryptonite_blake2b_finalize" |