Skip to content
Permalink
Browse files

make the call unsafe, so as to block the GC. /!\ hack

  • Loading branch information...
vincenthz committed Jan 10, 2015
1 parent c96da1f commit 9e05e82416fe2c2590cb9a5b332bb472aa8a55c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 Crypto/Cipher/AES.hs
@@ -617,7 +617,7 @@ foreign import ccall "aes.h aes_decrypt_xts"
foreign import ccall "aes.h aes_gen_ctr"
c_aes_gen_ctr :: CString -> Ptr AES -> Ptr Word8 -> CUInt -> IO ()

foreign import ccall "aes.h aes_gen_ctr_cont"
foreign import ccall unsafe "aes.h aes_gen_ctr_cont"
c_aes_gen_ctr_cont :: CString -> Ptr AES -> Ptr Word8 -> CUInt -> IO ()

foreign import ccall "aes.h aes_encrypt_ctr"

0 comments on commit 9e05e82

Please sign in to comment.
You can’t perform that action at this time.