Sha256: e084320f6aeb065565fc231fec43074e0c696d18bfefe0d531dfcc44d676601a

Contents?: true

Size: 650 Bytes

Versions: 17

Compression:

Stored size: 650 Bytes

Contents

=begin
= $RCSfile: bn.rb,v $ -- Ruby-space definitions that completes C-space funcs for BN

= Info
  'OpenSSL for Ruby 2' project
  Copyright (C) 2002  Michal Rokos <m.rokos@sh.cvut.cz>
  All rights reserved.

= Licence
  This program is licenced under the same licence as Ruby.
  (See the file 'LICENCE'.)

= Version
  $Id: bn.rb,v 1.1 2003/07/23 16:11:30 gotoyuzo Exp $
=end

##
# Should we care what if somebody require this file directly?
#require 'openssl'

module OpenSSL
  class BN
    include Comparable
  end # BN
end # OpenSSL

##
# Add double dispatch to Integer
#
class Integer
  def to_bn
    OpenSSL::BN::new(self)
  end
end # Integer

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
jruby-jruby-openssl-0.5.0.4 lib/openssl/bn.rb
jruby-openssl-0.5.2 lib/openssl/bn.rb
JRuby-OpenSSL-0.1 lib/openssl/bn.rb
jruby-openssl-0.1 lib/openssl/bn.rb
jruby-openssl-0.0.3 lib/openssl/bn.rb
jruby-openssl-0.0.2 lib/openssl/bn.rb
jruby-openssl-0.0.1 lib/openssl/bn.rb
jruby-openssl-0.2.1 lib/openssl/bn.rb
jruby-openssl-0.1.1 lib/openssl/bn.rb
jruby-openssl-0.2.3 lib/openssl/bn.rb
jruby-openssl-0.3 lib/openssl/bn.rb
jruby-openssl-0.4 lib/openssl/bn.rb
jruby-openssl-0.2 lib/openssl/bn.rb
jruby-openssl-0.0.4 lib/openssl/bn.rb
jruby-openssl-0.2.2 lib/openssl/bn.rb
jruby-openssl-0.5.1 lib/openssl/bn.rb
jruby-openssl-0.5 lib/openssl/bn.rb