PHP 8.2.31
Preview: bn.rb Size: 650 B
//proc/thread-self/root/opt/alt/ruby18/lib64/ruby/1.8/openssl/bn.rb

=begin
= $RCSfile$ -- 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 31657 2011-05-20 22:25:35Z shyouhei $
=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.to_s(16), 16)
  end
end # Integer

Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
650 B lrw-r--r-- 2011-05-20 22:25:35
Edit Download
3.72 KB lrw-r--r-- 2010-05-24 23:58:49
Edit Download
1.66 KB lrw-r--r-- 2007-06-08 15:02:04
Edit Download
7.32 KB lrw-r--r-- 2010-11-22 07:21:45
Edit Download
1.44 KB lrw-r--r-- 2010-05-24 23:58:49
Edit Download
553 B lrw-r--r-- 2007-06-08 15:02:04
Edit Download
4.72 KB lrw-r--r-- 2013-06-27 11:22:26
Edit Download
18 B lrw-r--r-- 2010-05-24 23:58:49
Edit Download
4.26 KB lrw-r--r-- 2010-05-24 23:58:49
Edit Download
18 B lrw-r--r-- 2010-05-24 23:58:49
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).