Move libcrypto ffi fns into their own module