BTW, speaking of wrapping more OpenSSL crypto functions, just came about this research project from Tomcat for using Panama FFI as a OpenSSL wrapper technology: that should work faster, safer and especially without native compiles!
https://github.com/rmaucher/openssl-panama-foreign Gruss Bernd -- http://bernd.eckenfels.net