I have a C function:
AES_KEY* generate_aes128_key()
which generates a AES_KEY*. struct AES_KEY is defined in openssl, and is allocated memory in the body of the function. I want to call this function in Java to get a AES_KEY, so how can I do it?