Sha256: a90b53fa5126919750539d70672faa745fd25268c38ea820f196307ec7952a33

Contents?: true

Size: 584 Bytes

Versions: 44

Compression:

Stored size: 584 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

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

44 entries across 44 versions & 4 rubygems

Version Path
redcar-0.3.4 lib/openssl/lib/openssl/bn.rb
redcar-0.3.3 lib/openssl/lib/openssl/bn.rb
jruby-openssl-0.6 lib/openssl/bn.rb
pftg-jruby-openssl-0.5.3 lib/openssl/bn.rb