Skip to content

Commit

Permalink
make the call unsafe, so as to block the GC. /!\ hack
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenthz committed Jan 10, 2015
1 parent c96da1f commit 9e05e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Crypto/Cipher/AES.hs
Expand Up @@ -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"
Expand Down

0 comments on commit 9e05e82

Please sign in to comment.