{-# LANGUAGE ForeignFunctionInterface #-} #include #include module Bindings.Nettle.Cipher.Serpent where #strict_import #num SERPENT_BLOCK_SIZE #num SERPENT_MIN_KEY_SIZE #num SERPENT_MAX_KEY_SIZE #num SERPENT_KEY_SIZE #starttype struct serpent_ctx #stoptype #ccall serpent_set_key , Ptr -> CUInt -> Ptr CUChar -> IO () #ccall serpent_encrypt , Ptr -> CUInt -> Ptr CUChar -> Ptr CUChar -> IO () #ccall serpent_decrypt , Ptr -> CUInt -> Ptr CUChar -> Ptr CUChar -> IO ()