Take a look at swig . This should be able to generate the necessary Java and c-code so that you can name your own functions defined in the openssl header of Java.
You just have to do:
swig openssl.h
java, openssl.h, c-, android (, openssl).
node Bouncy Castle. , android ( javax.net.ssl - , openssl android),