Fast RSA Engine for jruby-openssl gem
This gem replaces the RSA signature and RSA ciphers from jruby-openssl by the much faster implementation of them. See corner.squareup.com/2014/02/faster-rsa-jnagmp.html
but this works only for darwin and linux-x84_64 platforms due to the library used from squareup.
The improvement in performance brings JRuby verify and decrypy using RSA close to MRI.
gem install fast-rsa-engine
or add to your Gemfile
installing the gem also takes care of the jar dependencies with jruby-1.7.16+
with bundler its auto-require magic will be sufficient. otherwise just
running the benchmark
or ruby benchmark/benchmark-with-builtin-rsa.rb
Get all the gems and jars in place.
gem install jar-dependencies --development bundle install
Build jar and run all specs.
bundle exec rake