This gem replaces the RSA signature/ciphers from jruby-openssl with faster implementations of them
Java Ruby
Latest commit 918da03 Feb 24, 2017 @rohitasva rohitasva committed on GitHub Merge pull request #31 from dgolombek/wip/version_bump
Bump version for prior change
Permalink
Failed to load latest commit information.
benchmark
lib ensure the generated _jars.rb file is up to date Sep 15, 2015
spec use latest jossl gem and remove the classloader hack with loading som… Aug 20, 2015
src/main/java/com/github/lookout/fastrsa use latest jossl gem and remove the classloader hack with loading som… Aug 20, 2015
.gitignore ensure the generated _jars.rb file is up to date Sep 15, 2015
.travis.yml use latest jossl gem and remove the classloader hack with loading som… Aug 20, 2015
Gemfile Add a travis.yml for testing on JRuby 1.7 and 9k Jul 22, 2015
LICENSE prosa update Jul 17, 2015
README.md Update gem development steps in README Jan 27, 2017
Rakefile ensure the generated _jars.rb file is up to date Sep 15, 2015
fast-rsa-engine.gemspec Bump version for prior change Feb 24, 2017

README.md

Fast RSA Engine for jruby-openssl gem

Build Status

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.

installation

via rubygems

gem install fast-rsa-engine

or add to your Gemfile

gem 'fast-rsa-engine'

installing the gem also takes care of the jar dependencies with jruby-1.7.16+

usage

with bundler its auto-require magic will be sufficient. otherwise just

require 'fast-rsa-engine'

running the benchmark

ruby benchmark/benchmark-with-fast-rsa.rb

or ruby benchmark/benchmark-with-builtin-rsa.rb

developement

Get all the gems and jars in place.

gem install jar-dependencies --development
bundle install

Build jar and run all specs.

bundle exec rake

meta-fu

enjoy :)